1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Fix issue on slow connections

This commit is contained in:
Pierre HUBERT 2019-07-06 17:13:16 +02:00
parent 14882a80cd
commit dc79069b77

View File

@ -63,7 +63,9 @@ class _ConversationScreenState extends State<ConversationScreen> {
@override @override
void deactivate() { void deactivate() {
super.deactivate(); super.deactivate();
_refreshTime.cancel();
if(_refreshTime != null)
_refreshTime.cancel();
} }
void _setError(ErrorLevel err) => setState(() => _error = err); void _setError(ErrorLevel err) => setState(() => _error = err);