core: Properly signalize that a timeout happened
authorJens Georg <mail@jensge.org>
Thu, 20 Oct 2011 12:30:34 +0000 (14:30 +0200)
committerJens Georg <mail@jensge.org>
Tue, 25 Oct 2011 10:36:24 +0000 (12:36 +0200)
src/rygel/rygel-item-creator.vala

index aa24d7d..b601b8a 100644 (file)
@@ -430,8 +430,8 @@ internal class Rygel.ItemCreator: GLib.Object, Rygel.StateMachine {
                 timeout = Timeout.add_seconds (5, () => {
                     debug ("Timeout on waiting for 'updated' signal on '%s'.",
                            container.id);
-                    this.wait_for_item.callback ();
                     timeout = 0;
+                    this.wait_for_item.callback ();
 
                     return false;
                 });