Merge branch 'bugfix' of cwtch.im/cwtch into master

This commit is contained in:
erinn 2018-10-22 23:16:31 +00:00 committed by Gogs
commit 6fda5d223a
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}