Don't force reconnect if we're somehow already connected during Start()
This commit is contained in:
Łukasz Domeradzki
2024-10-12 16:11:10 +02:00
parent b0254aea2d
commit b0e36948c5

View File

@@ -1970,7 +1970,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
CancellationToken token = CallbacksAborted.Token;
Utilities.InBackground(() => HandleCallbacks(token), true);
Utilities.InBackground(Reconnect);
Utilities.InBackground(Connect);
} finally {
ConnectionSemaphore.Release();
}