We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d2d436 commit 9c120e7Copy full SHA for 9c120e7
lib/Blocs/sse_bloc/sse_bloc.dart
@@ -35,7 +35,7 @@ class SSEBloc extends Bloc<SSEEvent, SSEState> {
35
"Cookie": BlocProvider.of<UserDetailBloc>(event.context).token,
36
"Accept": "text/event-stream",
37
"Cache-Control": "no-cache",
38
- }).listen((listenEvent) {
+ }).listen((listenEvent) async {
39
if (listenEvent.id != '' &&
40
listenEvent.data != '' &&
41
listenEvent.event != '') {
@@ -62,6 +62,7 @@ class SSEBloc extends Bloc<SSEEvent, SSEState> {
62
case Events.TORRENT_LIST_DIFF_CHANGE:
63
EventHandlerApi.updateFullTorrentList(
64
model: listenEvent, context: event.context);
65
+ await Future.delayed(Duration.zero);
66
for (int i = 0;
67
i <
68
BlocProvider.of<HomeScreenBloc>(event.context,
0 commit comments