Disconnect client on shutdown.
This commit is contained in:
parent
e3f130ade5
commit
cf409a8d79
1 changed files with 2 additions and 0 deletions
|
@ -714,6 +714,8 @@ func (c *Client) Shutdown() {
|
|||
}
|
||||
c.requestLock.Unlock()
|
||||
c.removeAllRequests()
|
||||
|
||||
c.Disconnect()
|
||||
}
|
||||
|
||||
// Start begins processing input and output messages.
|
||||
|
|
Loading…
Reference in a new issue