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 40ccd4c commit 5dfd36cCopy full SHA for 5dfd36c
packages/powersync/lib/src/web/sync_worker.dart
@@ -134,6 +134,10 @@ class _SyncRunner {
134
sync?.abort();
135
sync = null;
136
137
+ // The only reliable notification we get for a client closing is
138
+ // when that client is currently hosting the database. Use the
139
+ // opportunity to check whether secondary clients have also closed
140
+ // in the meantime.
141
final newHost = await _collectActiveClients();
142
if (newHost == null) {
143
_logger.info('No client remains');
0 commit comments