diff options
Diffstat (limited to 'account.go')
-rw-r--r-- | account.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -111,6 +111,9 @@ func RemoveAccount(mxUser string, name string) { defer accountsLock.Unlock() if u, ok := registeredAccounts[mxUser]; ok { + if acct, ok := u[name]; ok { + acct.Conn.Close() + } delete(u, name) } } |