mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-11 00:08:38 +00:00
Merge pull request #654 from AudriusButkevicius/disco
Check if global discovery was actually started before trying to stop it (fixes #653)
This commit is contained in:
commit
a617846f0f
@ -108,8 +108,10 @@ func (d *Discoverer) StartGlobal(server string, extPort uint16) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (d *Discoverer) StopGlobal() {
|
func (d *Discoverer) StopGlobal() {
|
||||||
close(d.stopGlobal)
|
if d.stopGlobal != nil {
|
||||||
d.globalWG.Wait()
|
close(d.stopGlobal)
|
||||||
|
d.globalWG.Wait()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Discoverer) ExtAnnounceOK() bool {
|
func (d *Discoverer) ExtAnnounceOK() bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user