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

VBOX: Fix check-pointing. I broke it with my error path cleanup.

parent 18abc0db
No related branches found
No related tags found
No related merge requests found
......@@ -1858,23 +1858,21 @@ int VBOX_VM::create_snapshot(double elapsed_time) {
// Resume VM
resume();
if (ERR_EXEC != retval) goto CLEANUP;
// Set the suspended flag back to false before deleting the stale
// snapshot
poll(false);
// Delete stale snapshot(s), if one exists
retval = cleanup_snapshots(false);
if (retval) return retval;
cleanup_snapshots(false);
if (BOINC_SUCCESS == retval) {
fprintf(
stderr,
"%s Checkpoint completed.\n",
vboxwrapper_msg_prefix(buf, sizeof(buf))
);
}
CLEANUP:
return retval;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment