mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 12:15:47 -04:00
chore(mobile): add timeout when reading video files (#14831)
This commit is contained in:
parent
79a780e8d9
commit
a14735846c
@ -313,17 +313,14 @@ class BackupService {
|
||||
);
|
||||
}
|
||||
} else {
|
||||
if (asset.type == AssetType.video) {
|
||||
file = await asset.local!.originFile;
|
||||
} else {
|
||||
file = await asset.local!.originFile
|
||||
.timeout(const Duration(seconds: 5));
|
||||
file =
|
||||
await asset.local!.originFile.timeout(const Duration(seconds: 5));
|
||||
|
||||
if (asset.local!.isLivePhoto) {
|
||||
livePhotoFile = await asset.local!.originFileWithSubtype
|
||||
.timeout(const Duration(seconds: 5));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (file != null) {
|
||||
String? originalFileName =
|
||||
|
Loading…
x
Reference in New Issue
Block a user