Skip to content

Commit b4b06a2

Browse files
do not close subscription if creating socket is true
do not close subscription if creating socket is true to prevent concurrent modification error
1 parent 18ad858 commit b4b06a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/flutter/lib/src/realtime_mixin.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ mixin RealtimeMixin {
8888
break;
8989
}
9090
}, onDone: () {
91-
if (!_notifyDone) return;
91+
if (!_notifyDone || _creatingSocket) return;
9292
for (var subscription in _subscriptions.values) {
9393
subscription.close();
9494
}

0 commit comments

Comments
 (0)