fix(nbstore): close full blob sync for iOS (#10286)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user