Browse Source

Missed an else

pull/1603/head
Paulo 5 years ago
parent
commit
7d69180fc5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/ConnectionManager.cs

+ 1
- 1
src/Discord.Net.WebSocket/ConnectionManager.cs View File

@@ -44,7 +44,7 @@ namespace Discord
var ex2 = ex as WebSocketClosedException; var ex2 = ex as WebSocketClosedException;
if (ex2?.CloseCode == 4006) if (ex2?.CloseCode == 4006)
CriticalError(new Exception("WebSocket session expired", ex)); CriticalError(new Exception("WebSocket session expired", ex));
if (ex2?.CloseCode == 4014)
else if (ex2?.CloseCode == 4014)
CriticalError(new Exception("WebSocket connection was closed", ex)); CriticalError(new Exception("WebSocket connection was closed", ex));
else else
Error(new Exception("WebSocket connection was closed", ex)); Error(new Exception("WebSocket connection was closed", ex));


Loading…
Cancel
Save