loop. error fix. break inLoop after closing channel.
This commit is contained in:
parent
533dd6f9e8
commit
8a95c01df6
1
loop.go
1
loop.go
|
@ -110,6 +110,7 @@ func inLoop(c *Channel, m *methods) error {
|
||||||
msg, err := protocol.Decode(pkg)
|
msg, err := protocol.Decode(pkg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
CloseChannel(c, m, protocol.ErrorWrongPacket)
|
CloseChannel(c, m, protocol.ErrorWrongPacket)
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
switch msg.Type {
|
switch msg.Type {
|
||||||
|
|
Loading…
Reference in New Issue