DiscordSocketClient should use the new TrySetResultAsync method
This commit is contained in:
@@ -531,7 +531,7 @@ namespace Discord
|
|||||||
await _readyEvent.InvokeAsync().ConfigureAwait(false);
|
await _readyEvent.InvokeAsync().ConfigureAwait(false);
|
||||||
await SyncGuildsAsync().ConfigureAwait(false);
|
await SyncGuildsAsync().ConfigureAwait(false);
|
||||||
|
|
||||||
var _ = Task.Run(() => _connectTask.TrySetResult(true)); //Signal the .Connect() call to complete
|
var _ = _connectTask.TrySetResultAsync(true); //Signal the .Connect() call to complete
|
||||||
await _gatewayLogger.InfoAsync("Ready").ConfigureAwait(false);
|
await _gatewayLogger.InfoAsync("Ready").ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user