mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(nbstore): close full blob sync for iOS (#10286)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user