Add "Connection reset by peer" error to ignored errors
OmarHatem committed
Feb 6, 2023 at 19:56 UTC
861ba815319df10b98dc203d8b289d4cd200925d
1 file changed
+2
-1
lib/utils/exception_handler.dart
+2
-1
@@ -106,6 +106,7 @@ class ExceptionHandler {
106
/// Ignore User related errors or system errors
107
static bool _ignoreError(String error) {
108
return error.contains("errno = 103") || // SocketException: Software caused connection abort
109
- error.contains("errno = 9"); // SocketException: Bad file descriptor (iOS socket exception)
109
+ error.contains("errno = 9") || // SocketException: Bad file descriptor
110
+ error.contains("errno = 54"); // SocketException: Connection reset by peer
111
}
112
}