streamDispatcher deadlock bug fix
This commit is contained in:
parent
58ec36df49
commit
776e17f0a8
|
@ -155,8 +155,8 @@ func (c *Client) streamDispatcher() {
|
|||
}
|
||||
|
||||
c.mhandlers.Lock()
|
||||
defer c.mhandlers.Unlock()
|
||||
handler, ok := c.handlers[streamInfo.Proto]
|
||||
c.mhandlers.Unlock()
|
||||
if !ok {
|
||||
conn.Close()
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue