Disconnect client on shutdown.

This commit is contained in:
Dave Collins 2014-05-01 23:12:02 -05:00
parent e3f130ade5
commit cf409a8d79

View File

@ -714,6 +714,8 @@ func (c *Client) Shutdown() {
} }
c.requestLock.Unlock() c.requestLock.Unlock()
c.removeAllRequests() c.removeAllRequests()
c.Disconnect()
} }
// Start begins processing input and output messages. // Start begins processing input and output messages.