Revert "Protocol Question TODO"

This reverts commit 9788c07ac4.
This commit is contained in:
Sarah Jamie Lewis 2018-01-12 13:59:52 -05:00
parent 9788c07ac4
commit b378c4c825
1 changed files with 1 additions and 2 deletions

View File

@ -360,8 +360,7 @@ func (rc *Connection) Process(handler Handler) error {
} else { } else {
// When a non-zero packet is received for an unknown // When a non-zero packet is received for an unknown
// channel, the recipient responds by closing // channel, the recipient responds by closing
// that channel // that channel.
// TODO: (otherwise we just ignore) Clarify Protocol Spec?
rc.traceLog(fmt.Sprintf("received packet on unknown channel %d. closing.", packet.Channel)) rc.traceLog(fmt.Sprintf("received packet on unknown channel %d. closing.", packet.Channel))
if len(packet.Data) != 0 { if len(packet.Data) != 0 {
rc.SendRicochetPacket(rc.Conn, packet.Channel, []byte{}) rc.SendRicochetPacket(rc.Conn, packet.Channel, []byte{})