Only throw an exception if a TaskManager cancel was unexpected
This commit is contained in:
@@ -162,7 +162,10 @@ namespace Discord
|
||||
public void ThrowException()
|
||||
{
|
||||
using (_lock.Lock())
|
||||
_stopReason?.Throw();
|
||||
{
|
||||
if (!WasStopExpected)
|
||||
_stopReason?.Throw();
|
||||
}
|
||||
}
|
||||
public void ClearException()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user