From 2354e7fd7468ca5e758ce6b6efd2f8aae89731b9 Mon Sep 17 00:00:00 2001 From: Ske Date: Tue, 18 Feb 2020 21:56:15 +0100 Subject: [PATCH] Ignore timeout errors --- PluralKit.Bot/Utils/MiscUtils.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PluralKit.Bot/Utils/MiscUtils.cs b/PluralKit.Bot/Utils/MiscUtils.cs index 7bc4c61e..07520144 100644 --- a/PluralKit.Bot/Utils/MiscUtils.cs +++ b/PluralKit.Bot/Utils/MiscUtils.cs @@ -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;