Good catch

This commit is contained in:
Archi
2021-12-28 23:50:02 +01:00
parent fd05a2cab6
commit 1ba2880071

View File

@@ -1894,7 +1894,7 @@ public sealed class Bot : IAsyncDisposable {
}
private async Task HandleCallbacks() {
if (!await CallbackSemaphore.WaitAsync(CallbackSleep)) {
if (!await CallbackSemaphore.WaitAsync(CallbackSleep).ConfigureAwait(false)) {
if (Debugging.IsUserDebugging) {
ArchiLogger.LogGenericDebug(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, nameof(CallbackSemaphore)));
}