Skip to content

Commit

Permalink
use param for recieve only chan
Browse files Browse the repository at this point in the history
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
  • Loading branch information
jan25 authored and soheilhy committed Jan 14, 2021
1 parent a192073 commit 3c0ee78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmux.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (m *cMux) serve(c net.Conn, donec <-chan struct{}, wg *sync.WaitGroup) {
}
select {
case sl.l.connc <- muc:
case <-m.donec:
case <-donec:
_ = c.Close()
}
return
Expand Down

0 comments on commit 3c0ee78

Please sign in to comment.