diff --git a/infrastructure.go b/infrastructure.go index fa51e7bcc..6449a64de 100644 --- a/infrastructure.go +++ b/infrastructure.go @@ -714,6 +714,8 @@ func (c *Client) Shutdown() { } c.requestLock.Unlock() c.removeAllRequests() + + c.Disconnect() } // Start begins processing input and output messages.