-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon: attempt starting target vm only if not running yet
Do not call admin.vm.Start method on every (autostart) call. Do it only if the target qrexec daemon is not running - or rather, when connecting to it fails. This makes the happy path of a call a bit quicker (3-5ms in some basic tests), but more importantly it avoids needlessly checking with libvirt if the VM is running - which would block if some other slow operation is running at the time (like, starting another VM).
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters