@powersync/common 1.11.0 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,13 +116,16 @@ export class AbstractStreamingSyncImplementation extends BaseObserver {
|
|
|
116
116
|
}
|
|
117
117
|
catch (ex) {
|
|
118
118
|
this.updateSyncStatus({
|
|
119
|
-
connected: false,
|
|
120
119
|
dataFlow: {
|
|
121
120
|
uploading: false
|
|
122
121
|
}
|
|
123
122
|
});
|
|
124
123
|
await this.delayRetry();
|
|
125
|
-
|
|
124
|
+
if (!this.isConnected) {
|
|
125
|
+
// Exit the upload loop if the sync stream is no longer connected
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
this.logger.debug(`Caught exception when uploading. Upload will retry after a delay. Exception: ${ex.message}`);
|
|
126
129
|
}
|
|
127
130
|
finally {
|
|
128
131
|
this.updateSyncStatus({
|