loop. error fix. break inLoop after closing channel.

This commit is contained in:
Gennadii Kovalev 2016-06-22 16:06:51 +02:00
parent 533dd6f9e8
commit 8a95c01df6
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ func inLoop(c *Channel, m *methods) error {
msg, err := protocol.Decode(pkg)
if err != nil {
CloseChannel(c, m, protocol.ErrorWrongPacket)
return err
}
switch msg.Type {