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();
this.abort = abort;
this.fullSync(abort.signal).catch(error => {
if (error === MANUALLY_STOP) {
return;
}
console.error('sync blob error', error);
});
// TODO(@eyhn): fix this, large blob may cause iOS to crash?
if (!BUILD_CONFIG.isIOS) {
this.fullSync(abort.signal).catch(error => {
if (error === MANUALLY_STOP) {
return;
}
console.error('sync blob error', error);
});
}
}
stop() {