mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
lib/discovery: Receiving a new announcement should be non-blocking
Pretty sure the intention of the select was for it to be non-blocking. Not that it will matter almost ever.
This commit is contained in:
parent
432c78079b
commit
a551686d37
@ -179,8 +179,11 @@ func (c *localClient) recvAnnouncements(b beacon.Interface) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if newDevice {
|
if newDevice {
|
||||||
|
// Force a transmit to announce ourselves, if we are ready to do
|
||||||
|
// so right away.
|
||||||
select {
|
select {
|
||||||
case c.forcedBcastTick <- time.Now():
|
case c.forcedBcastTick <- time.Now():
|
||||||
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user