Skip to content
Snippets Groups Projects
Commit 91bb400c authored by Rom Walton's avatar Rom Walton
Browse files

VBOX: Bug fix for persisting remote desktop/web api port information

parent d4d3be34
No related branches found
No related tags found
No related merge requests found
......@@ -99,6 +99,7 @@ VBOX_BASE::VBOX_BASE() : VBOX_JOB() {
restoring = false;
crashed = false;
register_only = false;
rd_host_port = 0;
headless = true;
vm_pid = 0;
vboxsvc_pid = 0;
......
......@@ -679,6 +679,8 @@ int main(int argc, char** argv) {
checkpoint.parse();
elapsed_time = checkpoint.elapsed_time;
current_cpu_time = checkpoint.cpu_time;
pVM->pf_host_port = checkpoint.webapi_port;
pVM->rd_host_port = checkpoint.remote_desktop_port;
last_checkpoint_elapsed_time = elapsed_time;
starting_cpu_time = current_cpu_time;
last_checkpoint_cpu_time = current_cpu_time;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment