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 1537c26fed9..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 @@ -148,12 +148,15 @@ class _TalkRoomBloc extends InteractiveBloc implements TalkRoomBloc { } catch (error, stackTrace) { if (error case DynamiteStatusCodeException(statusCode: 304)) { log.info('Polling returned no new messages'); - } else { + } else if (error is! TimeoutException) { log.info( 'Error while waiting for new chat messages', error, stackTrace, ); + + // Don't spam the server if the error persists + await Future.delayed(const Duration(seconds: 10)); } } }