fix test cases

This commit is contained in:
Jae Kwon
2014-08-31 01:48:40 -07:00
parent fa382a3b05
commit a8ece216f0
9 changed files with 104 additions and 69 deletions

View File

@@ -59,14 +59,14 @@ func (p *Peer) Send(chId byte, msg Binary) bool {
if atomic.LoadUint32(&p.stopped) == 1 {
return false
}
return p.mconn.Send(chId, BinaryBytes(msg))
return p.mconn.Send(chId, msg)
}
func (p *Peer) TrySend(chId byte, msg Binary) bool {
if atomic.LoadUint32(&p.stopped) == 1 {
return false
}
return p.mconn.TrySend(chId, BinaryBytes(msg))
return p.mconn.TrySend(chId, msg)
}
func (p *Peer) CanSend(chId byte) bool {