Ignore timeout errors
This commit is contained in:
parent
55671b45d6
commit
2354e7fd74
@ -26,6 +26,9 @@ namespace PluralKit.Bot
|
|||||||
// Tasks being cancelled for whatver reason are, you guessed it, also not our problem.
|
// Tasks being cancelled for whatver reason are, you guessed it, also not our problem.
|
||||||
if (e is TaskCanceledException) return false;
|
if (e is TaskCanceledException) return false;
|
||||||
|
|
||||||
|
// Sometimes Discord just times everything out.
|
||||||
|
if (e is TimeoutException) return false;
|
||||||
|
|
||||||
// This may expanded at some point.
|
// This may expanded at some point.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user