Skip to content

Commit 9c120e7

Browse files
committed
fix remove notification on delete torrent
1 parent 6d2d436 commit 9c120e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Blocs/sse_bloc/sse_bloc.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class SSEBloc extends Bloc<SSEEvent, SSEState> {
3535
"Cookie": BlocProvider.of<UserDetailBloc>(event.context).token,
3636
"Accept": "text/event-stream",
3737
"Cache-Control": "no-cache",
38-
}).listen((listenEvent) {
38+
}).listen((listenEvent) async {
3939
if (listenEvent.id != '' &&
4040
listenEvent.data != '' &&
4141
listenEvent.event != '') {
@@ -62,6 +62,7 @@ class SSEBloc extends Bloc<SSEEvent, SSEState> {
6262
case Events.TORRENT_LIST_DIFF_CHANGE:
6363
EventHandlerApi.updateFullTorrentList(
6464
model: listenEvent, context: event.context);
65+
await Future.delayed(Duration.zero);
6566
for (int i = 0;
6667
i <
6768
BlocProvider.of<HomeScreenBloc>(event.context,

0 commit comments

Comments
 (0)