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 369dcc2 commit 82f4541Copy full SHA for 82f4541
packages/supabase_flutter/lib/src/supabase.dart
@@ -233,7 +233,8 @@ class Supabase with WidgetsBindingObserver {
233
Future<void> onResumed() async {
234
final realtime = Supabase.instance.client.realtime;
235
if (realtime.channels.isNotEmpty) {
236
- if (realtime.connState == SocketStates.disconnecting) {
+ if (realtime.connState == SocketStates.disconnecting &&
237
+ realtime.conn != null) {
238
// If the socket is still disconnecting from e.g.
239
// [AppLifecycleState.paused] we should wait for it to finish before
240
// reconnecting.
0 commit comments