mirror of
https://github.com/syncthing/syncthing.git
synced 2026-05-14 01:56:31 -04:00
fix(model): index handler error handling
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user