forked from External/ergo
parent
4cadb7ad58
commit
cb530050f1
3 changed files with 46 additions and 46 deletions
|
|
@ -1316,6 +1316,9 @@ func (client *Client) destroy(session *Session) {
|
|||
session.SetDestroyed()
|
||||
session.socket.Close()
|
||||
|
||||
// clean up monitor state
|
||||
client.server.monitorManager.RemoveAll(session)
|
||||
|
||||
// remove from connection limits
|
||||
var source string
|
||||
if session.isTor {
|
||||
|
|
@ -1381,8 +1384,6 @@ func (client *Client) destroy(session *Session) {
|
|||
if registered {
|
||||
client.server.monitorManager.AlertAbout(details.nick, details.nickCasefolded, false)
|
||||
}
|
||||
// clean up monitor state
|
||||
client.server.monitorManager.RemoveAll(client)
|
||||
|
||||
// clean up channels
|
||||
// (note that if this is a reattach, client has no channels and therefore no friends)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue