mirror of
https://github.com/BlackLight/cutiepi-lxpanel-battery.git
synced 2024-11-23 20:25:12 +01:00
Removed sleep from dbus poll - it stashes up delay in signal processing
This commit is contained in:
parent
e8364537b7
commit
3cefa13d51
1 changed files with 0 additions and 3 deletions
|
@ -128,10 +128,7 @@ void get_battery_info(BatteryInfo* info)
|
||||||
msg = dbus_connection_pop_message(conn);
|
msg = dbus_connection_pop_message(conn);
|
||||||
|
|
||||||
if (!msg)
|
if (!msg)
|
||||||
{
|
|
||||||
sleep(1);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
if (dbus_message_is_signal(msg, "io.cutiepi.interface", "updateEvent"))
|
if (dbus_message_is_signal(msg, "io.cutiepi.interface", "updateEvent"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue