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

This commit is contained in:
Rom Walton 2014-11-22 18:02:31 -05:00
parent 18abc0db07
commit 1e04a9f150
1 changed files with 8 additions and 10 deletions

View File

@ -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);
fprintf(
stderr,
"%s Checkpoint completed.\n",
vboxwrapper_msg_prefix(buf, sizeof(buf))
);
if (BOINC_SUCCESS == retval) {
fprintf(
stderr,
"%s Checkpoint completed.\n",
vboxwrapper_msg_prefix(buf, sizeof(buf))
);
}
CLEANUP:
return retval;
}