From 2fd52bac890cc24f655326dc2a8be8f2d4d9bb49 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Fri, 1 Nov 2024 10:35:38 +0100 Subject: [PATCH] fix(talk_app): Sleep after receiving unknown exception in message polling Signed-off-by: provokateurin --- .../neon_framework/packages/talk_app/lib/src/blocs/room.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/neon_framework/packages/talk_app/lib/src/blocs/room.dart b/packages/neon_framework/packages/talk_app/lib/src/blocs/room.dart index 73e08ef9a4a..7f6883a209c 100644 --- a/packages/neon_framework/packages/talk_app/lib/src/blocs/room.dart +++ b/packages/neon_framework/packages/talk_app/lib/src/blocs/room.dart @@ -154,6 +154,9 @@ class _TalkRoomBloc extends InteractiveBloc implements TalkRoomBloc { error, stackTrace, ); + + // Don't spam the server if the error persists + await Future.delayed(const Duration(seconds: 10)); } } }