|
@@ -443,7 +443,7 @@ func (server *Server) AddAlwaysOnClient(account ClientAccount, channelToModes ma
|
443
|
443
|
nextSessionID: 1,
|
444
|
444
|
}
|
445
|
445
|
|
446
|
|
- if client.checkAlwaysOnExpirationNoMutex(config) {
|
|
446
|
+ if client.checkAlwaysOnExpirationNoMutex(config, true) {
|
447
|
447
|
server.logger.Debug("accounts", "always-on client not created due to expiration", account.Name)
|
448
|
448
|
return
|
449
|
449
|
}
|
|
@@ -1403,7 +1403,7 @@ func (client *Client) destroy(session *Session) {
|
1403
|
1403
|
alwaysOn := registered && client.alwaysOn
|
1404
|
1404
|
// if we hit always-on-expiration, confirm the expiration and then proceed as though
|
1405
|
1405
|
// always-on is disabled:
|
1406
|
|
- if alwaysOn && session == nil && client.checkAlwaysOnExpirationNoMutex(config) {
|
|
1406
|
+ if alwaysOn && session == nil && client.checkAlwaysOnExpirationNoMutex(config, false) {
|
1407
|
1407
|
quitMessage = "Timed out due to inactivity"
|
1408
|
1408
|
alwaysOn = false
|
1409
|
1409
|
client.alwaysOn = false
|