Skip to content

Commit

Permalink
fix incorrect reset of timer fired variable (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo authored Mar 3, 2022
1 parent b646332 commit 9e63e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiplex.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,9 @@ loop:

if !recvTimeout.Stop() && !recvTimeoutFired {
<-recvTimeout.C
recvTimeoutFired = false
}
recvTimeout.Reset(ReceiveTimeout)
recvTimeoutFired = false

select {
case msch.dataIn <- b:
Expand Down

0 comments on commit 9e63e98

Please sign in to comment.