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
Set the parent cancel token of new voice sockets
pull/6/head
RogueException
9 years ago
parent
4fe97c4876
commit
a580f371c4
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/Discord.Net/DiscordSimpleClient.cs
+ 2
- 0
src/Discord.Net/DiscordSimpleClient.cs
View File
@@ -138,6 +138,8 @@ namespace Discord
_dataSocket.Host = gateway;
_dataSocket.ParentCancelToken = _cancelToken;
if (_config.EnableVoice)
_voiceSocket.ParentCancelToken = _cancelToken;
await _dataSocket.Login(token).ConfigureAwait(false);
_runTask = RunTasks();
Write
Preview
Loading…
Cancel
Save