Remove redundant check for in-memory variable since background task runs on a separate isolate
This commit is contained in:
parent
9cdf60df43
commit
ae1f28dac5
|
@ -66,13 +66,9 @@ Future<void> _runInForeground() async {
|
|||
}
|
||||
|
||||
Future _runBackgroundTask(String taskId) async {
|
||||
if (_initializationStatus == null) {
|
||||
_runWithLogs(() async {
|
||||
_runInBackground(taskId);
|
||||
}, prefix: "[bg]");
|
||||
} else {
|
||||
_runWithLogs(() async {
|
||||
_runInBackground(taskId);
|
||||
}
|
||||
}, prefix: "[bg]");
|
||||
}
|
||||
|
||||
Future<void> _runInBackground(String taskId) async {
|
||||
|
|
Loading…
Reference in a new issue