We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e7f96 commit f07ac1aCopy full SHA for f07ac1a
muxer/muxer.go
@@ -245,8 +245,11 @@ func (m *Muxer) readLoop() {
245
// Close receiver channels
246
m.protocolReceiversMutex.Lock()
247
for _, protocolRoles := range m.protocolReceivers {
248
- for _, recvChan := range protocolRoles {
+ for protocolRole, recvChan := range protocolRoles {
249
+ // Signal shutdown to protocol
250
close(recvChan)
251
+ // Remove mapping
252
+ delete(protocolRoles, protocolRole)
253
}
254
255
m.protocolReceiversMutex.Unlock()
0 commit comments