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