diff --git a/engine/src/flutter/fml/platform/darwin/message_loop_darwin.mm b/engine/src/flutter/fml/platform/darwin/message_loop_darwin.mm index 93e6cf935d..90977a8b56 100644 --- a/engine/src/flutter/fml/platform/darwin/message_loop_darwin.mm +++ b/engine/src/flutter/fml/platform/darwin/message_loop_darwin.mm @@ -41,7 +41,7 @@ void MessageLoopDarwin::Run() { while (running_) { @autoreleasepool { - CFRunLoopRunResult result = + int result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, kDistantFuture, YES); if (result == kCFRunLoopRunStopped || result == kCFRunLoopRunFinished) { // This handles the case where the loop is terminated using