From 0de7e5ed87a633a2fc25aef1f13e5a513d832fc4 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Mon, 22 Nov 2021 14:58:06 +0800 Subject: [PATCH] Add missing close() --- lib/bloc/list_sharing.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/bloc/list_sharing.dart b/lib/bloc/list_sharing.dart index 99438752..39d632b5 100644 --- a/lib/bloc/list_sharing.dart +++ b/lib/bloc/list_sharing.dart @@ -159,6 +159,13 @@ class ListSharingBloc extends Bloc { } } + @override + close() { + _shareRemovedListener.end(); + _refreshThrottler.clear(); + return super.close(); + } + @override mapEventToState(ListSharingBlocEvent event) async* { _log.info("[mapEventToState] $event");