fix: isolate freeze app on older ios device

This commit is contained in:
Alex 2025-09-30 13:01:51 -05:00
parent 6c67bbd528
commit e9616a3fbc
No known key found for this signature in database
GPG key ID: 53CD082B3A5E1082
4 changed files with 255 additions and 5 deletions

View file

@ -11,6 +11,7 @@ import 'package:immich_mobile/providers/infrastructure/db.provider.dart';
import 'package:immich_mobile/utils/bootstrap.dart';
import 'package:immich_mobile/utils/debug_print.dart';
import 'package:immich_mobile/utils/http_ssl_options.dart';
import 'package:immich_mobile/wm_executor.dart';
import 'package:logging/logging.dart';
import 'package:worker_manager/worker_manager.dart';
@ -31,7 +32,7 @@ Cancelable<T?> runInIsolateGentle<T>({
throw const InvalidIsolateUsageException();
}
return workerManager.executeGentle((cancelledChecker) async {
return workerManagerForIos.executeGentle((cancelledChecker) async {
T? result;
await runZonedGuarded(
() async {