Skip to content

Commit

Permalink
sync: Cancel the context when finishing the handling
Browse files Browse the repository at this point in the history
Signed-off-by: Shuo Wu <shuo.wu@suse.com>
  • Loading branch information
shuo-wu authored and innobead committed Jun 9, 2022
1 parent bf6f871 commit 26bd1e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/sync/sync_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,9 @@ func (sf *SyncingFile) finishProcessing(err error) {
}

func (sf *SyncingFile) finishProcessingNoLock(err error) {
defer sf.handleFailureNoLock(err)
sf.cancel()

defer sf.handleFailureNoLock(err)
if err != nil {
return
}
Expand Down

0 comments on commit 26bd1e6

Please sign in to comment.