From dbfaf7fa727219ce0001d6a5a09bac665456631f Mon Sep 17 00:00:00 2001 From: Sorunome Date: Mon, 29 Jun 2020 15:27:14 +0200 Subject: [PATCH] hide red herring sync errors --- lib/src/client.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/client.dart b/lib/src/client.dart index 23f26874..6208b288 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -708,6 +708,9 @@ class Client { onError.add(exception); await Future.delayed(Duration(seconds: syncErrorTimeoutSec), _sync); } catch (e, s) { + if (isLogged() == false || _disposed) { + return; + } print('Error during processing events: ' + e.toString()); print(s); onSyncError.add(SyncError(