From cf409a8d794daa490b79f5a63c534e6616c9a412 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 1 May 2014 23:12:02 -0500 Subject: [PATCH] Disconnect client on shutdown. --- infrastructure.go | 2 ++ 1 file changed, 2 insertions(+) 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.