virtualbox-python icon indicating copy to clipboard operation
virtualbox-python copied to clipboard

Close partially opened guest session when IGuest.create_session() fails

Open busan15 opened this issue 2 years ago • 1 comments

Ensures that guest sessions created with IGuest.create_session() are properly closed in case of failure. Closes #101.

busan15 avatar Mar 23 '22 13:03 busan15

Through further testing it appears that the default value of timeout_ms=0 can sometimes get the process to hang indefinitely while waiting for a failed session to finish terminating. Setting a fixed timeout of 5 seconds should be enough to give the session a chance to terminate properly while not blocking the rest of the program for too long.

busan15 avatar Apr 29 '22 10:04 busan15