fix(nbstore): close full blob sync for iOS (#10286)

This commit is contained in:
EYHN
2025-02-19 16:57:32 +08:00
committed by GitHub
parent 90b0982dd3
commit 5b768d9091

View File

@@ -145,12 +145,15 @@ export class BlobSyncImpl implements BlobSync {
const abort = new AbortController(); const abort = new AbortController();
this.abort = abort; this.abort = abort;
this.fullSync(abort.signal).catch(error => { // TODO(@eyhn): fix this, large blob may cause iOS to crash?
if (error === MANUALLY_STOP) { if (!BUILD_CONFIG.isIOS) {
return; this.fullSync(abort.signal).catch(error => {
} if (error === MANUALLY_STOP) {
console.error('sync blob error', error); return;
}); }
console.error('sync blob error', error);
});
}
} }
stop() { stop() {