DBusMainLoop: ensure all required timeouts are restarted
authorMichal Koutný <mkoutny@suse.com>
Thu, 29 Jun 2017 09:24:49 +0000 (11:24 +0200)
committerSimon McVittie <smcv@collabora.com>
Thu, 20 Jul 2017 19:35:04 +0000 (20:35 +0100)
This is a followup of 529600397bcab47b9bed5da9208c2df05c8b86b4. We can't
shortcut the timeouts iteration in order not to miss any timeouts that
might require timestamp restart.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=95619
Reviewed-by: Simon McVittie <smcv@collabora.com>
dbus/dbus-mainloop.c

index 2e3f3d1..1f8ae0f 100644 (file)
@@ -629,9 +629,6 @@ _dbus_loop_iterate (DBusLoop     *loop,
 #endif
               
               _dbus_assert (timeout >= 0);
-                  
-              if (timeout == 0)
-                break; /* it's not going to get shorter... */
             }
 #if MAINLOOP_SPEW
           else