Skip to content

Commit 73c3bbd

Browse files
committed
fix compilation as suggested by @Tulleb in PR #619
1 parent 4ea5058 commit 73c3bbd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • workmanager_android/android/src/main/kotlin/dev/fluttercommunity/workmanager

workmanager_android/android/src/main/kotlin/dev/fluttercommunity/workmanager/BackgroundWorker.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ class BackgroundWorker(
9393

9494
if (callbackInfo == null) {
9595
Log.e(TAG, "Failed to resolve Dart callback for handle $callbackHandle.")
96-
return Result.failure()
96+
completer?.set(Result.failure())
97+
return@ensureInitializationCompleteAsync
9798
}
9899

99100
val dartBundlePath = flutterLoader.findAppBundlePath()

0 commit comments

Comments
 (0)