This commit is contained in:
Diego
2025-07-22 01:17:12 +08:00
parent 605830edce
commit 232ee5d5d4
904 changed files with 734 additions and 4661 deletions

View File

@@ -54,7 +54,7 @@ internal class SessionCollection : DisposeBase, IDictionary<String, ISocketSessi
var p = ClearPeriod * 1000;
_clearTimer ??= new TimerX(RemoveNotAlive, null, p, p) { Async = true, };
session.OnDisposed += (s, e) => { _dic.Remove((s as ISocketSession)?.Remote.EndPoint + ""); };
session.OnDisposed += (s, e) => _dic.Remove((s as ISocketSession)?.Remote.EndPoint + "");
return true;
}