This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fixed nullref during reconnect
pull/501/head
RogueException
8 years ago
parent
547d7d241f
commit
a266d072db
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/Discord.Net.WebSocket/DiscordSocketClient.cs
+ 1
- 1
src/Discord.Net.WebSocket/DiscordSocketClient.cs
View File
@@ -313,7 +313,7 @@ namespace Discord.WebSocket
private async Task StartReconnectAsync(Exception ex)
{
if ((ex as WebSocketClosedException).CloseCode == 4004) //Bad Token
if ((ex as WebSocketClosedException)
?
.CloseCode == 4004) //Bad Token
{
_canReconnect = false;
_connectTask?.TrySetException(ex);
Write
Preview
Loading…
Cancel
Save