aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'account.go')
-rw-r--r--account.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/account.go b/account.go
index 7c58611..9e18ec1 100644
--- a/account.go
+++ b/account.go
@@ -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)
}
}