mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +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(
|
||||
path: remote_storage_util.getRemoteAlbumsDir(account),
|
||||
));
|
||||
} catch (e) {
|
||||
} catch (e, stacktrace) {
|
||||
if (e is ApiException && e.response.statusCode == 404) {
|
||||
// no albums
|
||||
return;
|
||||
}
|
||||
rethrow;
|
||||
yield Tuple2(e, stacktrace);
|
||||
return;
|
||||
}
|
||||
final albumFiles =
|
||||
ls.where((element) => element.isCollection != true).toList();
|
||||
|
|
Loading…
Reference in a new issue