mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Ignore timeout errors
This commit is contained in:
parent
55671b45d6
commit
2354e7fd74
1 changed files with 3 additions and 0 deletions
|
|
@ -25,6 +25,9 @@ namespace PluralKit.Bot
|
|||
|
||||
// Tasks being cancelled for whatver reason are, you guessed it, also not our problem.
|
||||
if (e is TaskCanceledException) return false;
|
||||
|
||||
// Sometimes Discord just times everything out.
|
||||
if (e is TimeoutException) return false;
|
||||
|
||||
// This may expanded at some point.
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue