Changeset 55146 in vbox
- Timestamp:
- Apr 8, 2015 4:36:24 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r55093 r55146 91 91 /* Other VBox includes: */ 92 92 # include <iprt/path.h> 93 # include <iprt/thread.h> 93 94 # ifdef VBOX_WITH_DEBUGGER_GUI 94 95 # include <VBox/dbggui.h> … … 559 560 /* VM has been powered off, saved, teleported or aborted. 560 561 * We must close Runtime UI: */ 562 if (vboxGlobal().isSeparateProcess()) 563 { 564 /* Hack: The VM process is terminating, so wait a bit to make sure that 565 * the session is unlocked and the GUI process can save extradata 566 * in UIMachine::cleanupMachineLogic. 567 */ 568 /** @todo Probably should wait for the session state change event. */ 569 KSessionState sessionState = uisession()->session().GetState(); 570 int c = 0; 571 while ( sessionState == KSessionState_Locked 572 || sessionState == KSessionState_Unlocking) 573 { 574 if (++c > 50) break; 575 576 RTThreadSleep(100); 577 sessionState = uisession()->session().GetState(); 578 } 579 } 580 561 581 uisession()->closeRuntimeUI(); 562 582 return;
Note:
See TracChangeset
for help on using the changeset viewer.

