lib/syncthing: Wait for actual termination on Stop() (#6277)

This commit is contained in:
Simon Frei 2020-01-20 08:40:15 +01:00 committed by Jakob Borg
parent 6c8e8f0391
commit 879d757850

View File

@ -404,6 +404,7 @@ func (a *App) stopWithErr(stopReason ExitStatus, err error) ExitStatus {
a.err = err
close(a.stop)
})
<-a.stopped
return a.exitStatus
}