You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-08 23:07:06 +02:00
chore(mobile): add timeout when reading video files (#14831)
This commit is contained in:
@ -313,15 +313,12 @@ class BackupService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (asset.type == AssetType.video) {
|
file =
|
||||||
file = await asset.local!.originFile;
|
await asset.local!.originFile.timeout(const Duration(seconds: 5));
|
||||||
} else {
|
|
||||||
file = await asset.local!.originFile
|
if (asset.local!.isLivePhoto) {
|
||||||
|
livePhotoFile = await asset.local!.originFileWithSubtype
|
||||||
.timeout(const Duration(seconds: 5));
|
.timeout(const Duration(seconds: 5));
|
||||||
if (asset.local!.isLivePhoto) {
|
|
||||||
livePhotoFile = await asset.local!.originFileWithSubtype
|
|
||||||
.timeout(const Duration(seconds: 5));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user