Changeset 41096 in vbox
- Timestamp:
- Apr 30, 2012 10:28:59 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77685
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r40673 r41096 174 174 { 175 175 /* first pause so we don't trigger a live save which needs more time/resources */ 176 bool fPaused = false; 176 177 rc = console->Pause(); 177 178 if (FAILED(rc)) 178 179 { 180 bool fError = true; 179 181 if (rc == VBOX_E_INVALID_VM_STATE) 180 182 { … … 184 186 /* the error code was lost by the previous instruction */ 185 187 rc = VBOX_E_INVALID_VM_STATE; 188 RTPrintf("machineState = %d (%d)\n", machineState, MachineState_Paused); 186 189 if (machineState != MachineState_Paused) 187 190 { … … 189 192 machineState, machineStateToName(machineState, false)); 190 193 } 191 } 192 break; 194 else 195 { 196 fError = false; 197 fPaused = true; 198 } 199 } 200 if (fError) 201 break; 193 202 } 194 203 … … 197 206 if (FAILED(rc)) 198 207 { 199 console->Resume(); 208 if (!fPaused) 209 console->Resume(); 200 210 break; 201 211 } … … 204 214 CHECK_PROGRESS_ERROR(progress, ("Failed to save machine state")); 205 215 if (FAILED(rc)) 206 console->Resume(); 216 { 217 if (!fPaused) 218 console->Resume(); 219 } 207 220 } 208 221 else if (!strcmp(a->argv[1], "acpipowerbutton"))
Note:
See TracChangeset
for help on using the changeset viewer.