From fa84988a6c69e82fa8f5007418cda2ad33b1193c Mon Sep 17 00:00:00 2001 From: Kei Kamikawa Date: Mon, 18 Nov 2024 09:28:31 +0900 Subject: [PATCH] Update virtualization_11.m --- virtualization_11.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualization_11.m b/virtualization_11.m index a3bad68..017f6f7 100644 --- a/virtualization_11.m +++ b/virtualization_11.m @@ -954,7 +954,7 @@ void startWithCompletionHandler(void *machine, void *queue, uintptr_t cgoHandle) { if (@available(macOS 11, *)) { vm_completion_handler_t handler = makeVMCompletionHandler(cgoHandle); - dispatch_async((dispatch_queue_t)queue, ^{ + dispatch_sync((dispatch_queue_t)queue, ^{ [(VZVirtualMachine *)machine startWithCompletionHandler:handler]; }); Block_release(handler);