This commit is contained in:
Jae Kwon
2014-10-06 01:46:39 -07:00
parent 839301b03c
commit 335b7a5984
5 changed files with 115 additions and 114 deletions

View File

@ -156,6 +156,7 @@ func (s *Switch) IsDialing(addr *NetAddress) bool {
return s.dialing.Has(addr.String())
}
// XXX: This is wrong, we can't just ignore failures on TrySend.
func (s *Switch) Broadcast(chId byte, msg Binary) (numSuccess, numFailure int) {
if atomic.LoadUint32(&s.stopped) == 1 {
return