From dc79069b7726a84c5e25313b084ba1a9fedc2e91 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 6 Jul 2019 17:13:16 +0200 Subject: [PATCH] Fix issue on slow connections --- lib/ui/screens/conversation_screen.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/screens/conversation_screen.dart b/lib/ui/screens/conversation_screen.dart index 069a6a6..7843eae 100644 --- a/lib/ui/screens/conversation_screen.dart +++ b/lib/ui/screens/conversation_screen.dart @@ -63,7 +63,9 @@ class _ConversationScreenState extends State { @override void deactivate() { super.deactivate(); - _refreshTime.cancel(); + + if(_refreshTime != null) + _refreshTime.cancel(); } void _setError(ErrorLevel err) => setState(() => _error = err);