Skip to content

Commit 8a95c01

Browse files
author
Gennadii Kovalev
committed
loop. error fix. break inLoop after closing channel.
1 parent 533dd6f commit 8a95c01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

loop.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ func inLoop(c *Channel, m *methods) error {
110110
msg, err := protocol.Decode(pkg)
111111
if err != nil {
112112
CloseChannel(c, m, protocol.ErrorWrongPacket)
113+
return err
113114
}
114115

115116
switch msg.Type {

0 commit comments

Comments
 (0)