forked from cwtch.im/cwtch
Merge branch 'bugfix' of cwtch.im/cwtch into master
This commit is contained in:
commit
6fda5d223a
|
@ -92,7 +92,7 @@ func (cpc *CwtchPeerDataChannel) OpenOutboundResult(err error, crm *Protocol_Dat
|
|||
// Packet is called for each raw packet received on this channel.
|
||||
func (cpc *CwtchPeerDataChannel) Packet(data []byte) {
|
||||
ret := cpc.Handler.HandlePacket(data)
|
||||
if len(ret) >= 0 {
|
||||
if len(ret) > 0 {
|
||||
cpc.channel.SendMessage(ret)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue