DiscordSocketClient should use the new TrySetResultAsync method

This commit is contained in:
RogueException
2016-07-14 14:38:53 -03:00
parent 67d6312a66
commit a386796266

View File

@@ -531,7 +531,7 @@ namespace Discord
await _readyEvent.InvokeAsync().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);
}
break;