Browse Source

fix(model): index handler error handling

Jakob Borg 5 months ago
parent
commit
72849690c9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/model/indexhandler.go

+ 2 - 1
lib/model/indexhandler.go

@@ -194,7 +194,8 @@ func (s *indexHandler) Serve(ctx context.Context) (err error) {
 		// currently in the database, wait for the local index to update. The
 		// local index may update for other folders than the one we are
 		// sending for.
-		seq, err := s.sdb.GetDeviceSequence(s.folder, protocol.LocalDeviceID)
+		var seq int64
+		seq, err = s.sdb.GetDeviceSequence(s.folder, protocol.LocalDeviceID)
 		if err != nil {
 			return err
 		}