mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
lib/syncthing: Wait for actual termination on Stop() (#6277)
This commit is contained in:
parent
6c8e8f0391
commit
879d757850
@ -404,6 +404,7 @@ func (a *App) stopWithErr(stopReason ExitStatus, err error) ExitStatus {
|
||||
a.err = err
|
||||
close(a.stop)
|
||||
})
|
||||
<-a.stopped
|
||||
return a.exitStatus
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user