Changeset 55647 in vbox for trunk/src/VBox/Main/src-server/linux
- Timestamp:
- May 4, 2015 2:23:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/linux/HostPowerLinux.cpp
r55602 r55647 99 99 DBusMessage *pMessage = NULL; 100 100 101 do { 101 for (;;) 102 { 102 103 DBusMessageIter args; 103 104 dbus_bool_t fSuspend; … … 105 106 pMessage = dbus_connection_pop_message(pPowerObj->mpConnection); 106 107 if (pMessage == NULL) 107 continue;108 break; 108 109 /* The systemd-logind interface notification. */ 109 110 if ( dbus_message_is_signal(pMessage, "org.freedesktop.login1.Manager", "PrepareForSleep") … … 117 118 pPowerObj->notify(Reason_HostSuspend); 118 119 else 119 pPowerObj->notify(Reason_HostResume); 120 pPowerObj->notify(Reason_HostResume); 120 121 } 121 122 /* The UPowerd interface notifications. Sleeping is the older one, … … 130 131 /* Free local resources held for the message. */ 131 132 dbus_message_unref(pMessage); 132 } while (pMessage != NULL);133 } 133 134 } 134 135 /* Close the socket or whatever underlying the connection. */
Note:
See TracChangeset
for help on using the changeset viewer.