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
Only throw an exception if a TaskManager cancel was unexpected
pull/29/head
RogueException
9 years ago
parent
4b4df67287
commit
fa0c7c3f40
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
src/Discord.Net/TaskManager.cs
+ 4
- 1
src/Discord.Net/TaskManager.cs
View File
@@ -162,7 +162,10 @@ namespace Discord
public void ThrowException()
{
using (_lock.Lock())
_stopReason?.Throw();
{
if (!WasStopExpected)
_stopReason?.Throw();
}
}
public void ClearException()
{
Write
Preview
Loading…
Cancel
Save