|
@@ -278,6 +278,9 @@ func (server *Server) RunClient(conn clientConn, proxyLine string) {
|
278
|
278
|
}
|
279
|
279
|
client.sessions = []*Session{session}
|
280
|
280
|
|
|
281
|
+ session.idletimer.Initialize(session)
|
|
282
|
+ session.resetFakelag()
|
|
283
|
+
|
281
|
284
|
if conn.Config.TLSConfig != nil {
|
282
|
285
|
client.SetMode(modes.TLS, true)
|
283
|
286
|
// error is not useful to us here anyways so we can ignore it
|
|
@@ -535,9 +538,6 @@ func (client *Client) run(session *Session, proxyLine string) {
|
535
|
538
|
client.destroy(session)
|
536
|
539
|
}()
|
537
|
540
|
|
538
|
|
- session.idletimer.Initialize(session)
|
539
|
|
- session.resetFakelag()
|
540
|
|
-
|
541
|
541
|
isReattach := client.Registered()
|
542
|
542
|
if isReattach {
|
543
|
543
|
if session.resumeDetails != nil {
|
|
@@ -1245,7 +1245,6 @@ func (client *Client) destroy(session *Session) {
|
1245
|
1245
|
client.server.stats.Remove(registered, invisible, operator)
|
1246
|
1246
|
}
|
1247
|
1247
|
|
1248
|
|
- // do not destroy the client if it has either remaining sessions, or is BRB'ed
|
1249
|
1248
|
if !shouldDestroy {
|
1250
|
1249
|
return
|
1251
|
1250
|
}
|