don't eat up cpu with -msg
This commit is contained in:
parent
4caf7a68e9
commit
bdeb4aab96
2
dunst.c
2
dunst.c
@ -237,6 +237,8 @@ run(void) {
|
|||||||
/* dbus_poll blocks for max 2 seconds, if no events are present */
|
/* dbus_poll blocks for max 2 seconds, if no events are present */
|
||||||
if(listen_to_dbus) {
|
if(listen_to_dbus) {
|
||||||
dbus_poll();
|
dbus_poll();
|
||||||
|
} else {
|
||||||
|
usleep(1000*50);
|
||||||
}
|
}
|
||||||
now = time(&now);
|
now = time(&now);
|
||||||
if(msgqueue != NULL) {
|
if(msgqueue != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user