diff options
Diffstat (limited to 'gdbus/mainloop.c')
-rwxr-xr-x | gdbus/mainloop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c index b90a8447..edb384ef 100755 --- a/gdbus/mainloop.c +++ b/gdbus/mainloop.c @@ -30,6 +30,8 @@ #include "gdbus.h" +#define DISPATCH_TIMEOUT 0 + #define info(fmt...) #define error(fmt...) #define debug(fmt...) @@ -68,6 +70,8 @@ static gboolean message_dispatch(void *data) { DBusConnection *conn = data; + dbus_connection_ref(conn); + /* Dispatch messages */ while (dbus_connection_dispatch(conn) == DBUS_DISPATCH_DATA_REMAINS); |