mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 01:00:12 +00:00
Ignore timeout errors
This commit is contained in:
parent
55671b45d6
commit
2354e7fd74
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue