Check if widget is mounted before showing popups

This commit is contained in:
OmarHatem 2023-02-07 18:03:31 +02:00
parent a8025ffbec
commit bf407bedec
3 changed files with 22 additions and 20 deletions

View file

@ -120,6 +120,7 @@ class ExceptionHandler {
static bool _ignoreError(String error) {
return error.contains("errno = 103") || // SocketException: Software caused connection abort
error.contains("errno = 9") || // SocketException: Bad file descriptor
error.contains("errno = 32") || // SocketException: Write failed (OS Error: Broken pipe)
error.contains("errno = 54"); // SocketException: Connection reset by peer
}
}