You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(this.Configuration.AutoReconnect&&e.CloseCodeis<4001 or >=5000)
263
+
if(fatalError)
264
+
{
265
+
this.Logger.LogCritical(LoggerEvents.ConnectionClose,"Fatal close code received ({CloseCode}, '{Reason}'). No reconnection attempt.",e.CloseCode,e.CloseMessage??"No reason given");
266
+
return;
267
+
}
268
+
269
+
if(shouldReconnect&&!shouldResume)
270
+
{
271
+
this.Logger.LogWarning(LoggerEvents.ConnectionClose,"Session is invalid. Clearing session ID before reconnecting.");
this.Logger.LogWarning(LoggerEvents.ConnectionClose,"No valid session to resume, starting a new connection.");
284
+
285
+
awaitthis.ConnectAsync(this._status?.ActivityInternal,this._status?.Status,this._statusis not null&&this._status.IdleSince.HasValue?Utilities.GetDateTimeOffsetFromMilliseconds(this._status.IdleSince.Value):null).ConfigureAwait(false);
0 commit comments