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);