Skip to content

Commit

Permalink
fix(talk_app): Sleep after receiving unknown exception in message pol…
Browse files Browse the repository at this point in the history
…ling

Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Nov 1, 2024
1 parent f722094 commit 2fd52ba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ class _TalkRoomBloc extends InteractiveBloc implements TalkRoomBloc {
error,
stackTrace,
);

// Don't spam the server if the error persists
await Future<void>.delayed(const Duration(seconds: 10));
}
}
}
Expand Down

0 comments on commit 2fd52ba

Please sign in to comment.