mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-08 18:28:53 +01:00
Fix potential deadlock listing albums
This commit is contained in:
parent
0e8a461a0f
commit
7d078b5a8d
1 changed files with 3 additions and 2 deletions
|
@ -37,12 +37,13 @@ class ListAlbum {
|
||||||
File(
|
File(
|
||||||
path: remote_storage_util.getRemoteAlbumsDir(account),
|
path: remote_storage_util.getRemoteAlbumsDir(account),
|
||||||
));
|
));
|
||||||
} catch (e) {
|
} catch (e, stacktrace) {
|
||||||
if (e is ApiException && e.response.statusCode == 404) {
|
if (e is ApiException && e.response.statusCode == 404) {
|
||||||
// no albums
|
// no albums
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
rethrow;
|
yield Tuple2(e, stacktrace);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
final albumFiles =
|
final albumFiles =
|
||||||
ls.where((element) => element.isCollection != true).toList();
|
ls.where((element) => element.isCollection != true).toList();
|
||||||
|
|
Loading…
Reference in a new issue