mirror of
https://github.com/octoleo/syncthing.git
synced 2024-09-19 13:19:01 +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
|
a.err = err
|
||||||
close(a.stop)
|
close(a.stop)
|
||||||
})
|
})
|
||||||
|
<-a.stopped
|
||||||
return a.exitStatus
|
return a.exitStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user