diff --git a/src/Discord.Net/DiscordWSClient.cs b/src/Discord.Net/DiscordWSClient.cs
index edd361623..4b64200d4 100644
--- a/src/Discord.Net/DiscordWSClient.cs
+++ b/src/Discord.Net/DiscordWSClient.cs
@@ -257,7 +257,11 @@ namespace Discord
/// Blocking call that will not return until client has been stopped. This is mainly intended for use in console applications.
public void Run(Func asyncAction)
{
- asyncAction().Wait();
+ try
+ {
+ asyncAction().Wait();
+ }
+ catch (AggregateException ex) when (ex.InnerException is TaskCanceledException) { }
_disconnectedEvent.WaitOne();
}
/// Blocking call that will not return until client has been stopped. This is mainly intended for use in console applications.