Skip to content

Commit

Permalink
Merge remote-tracking branch 'gh-150/patch-1' into amqp091-go-150
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Feb 8, 2023
2 parents 444e310 + 4873ecb commit 211fa78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,9 @@ func (c *Connection) dispatch0(f frame) {
func (c *Connection) dispatchN(f frame) {
c.m.Lock()
channel := c.channels[f.channel()]
updateChannel(f, channel)
if channel != nil {
updateChannel(f, channel)
}
c.m.Unlock()

// Note: this could result in concurrent dispatch depending on
Expand Down

0 comments on commit 211fa78

Please sign in to comment.