From 861ba815319df10b98dc203d8b289d4cd200925d Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Mon, 6 Feb 2023 19:56:55 +0200 Subject: [PATCH] Add "Connection reset by peer" error to ignored errors --- lib/utils/exception_handler.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/exception_handler.dart b/lib/utils/exception_handler.dart index ee3da8551..b8d0089ec 100644 --- a/lib/utils/exception_handler.dart +++ b/lib/utils/exception_handler.dart @@ -106,6 +106,7 @@ class ExceptionHandler { /// Ignore User related errors or system errors static bool _ignoreError(String error) { return error.contains("errno = 103") || // SocketException: Software caused connection abort - error.contains("errno = 9"); // SocketException: Bad file descriptor (iOS socket exception) + error.contains("errno = 9") || // SocketException: Bad file descriptor + error.contains("errno = 54"); // SocketException: Connection reset by peer } }