[rygel] rygel: Disable plugin timeout completely



commit 9c58811ca4d6c2bcb67d0205da88721a3820a524
Author: Jens Georg <mail jensge org>
Date:   Sun Oct 5 12:03:30 2014 +0200

    rygel: Disable plugin timeout completely
    
    Make it possible to disable the timeout, mainly to serve debugging setup
    that needs to be done during startup.
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/rygel/rygel-main.vala |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-main.vala b/src/rygel/rygel-main.vala
index 0c0387e..0ce8b0b 100644
--- a/src/rygel/rygel-main.vala
+++ b/src/rygel/rygel-main.vala
@@ -100,10 +100,16 @@ internal class Rygel.Main : Object {
             var config = MetaConfig.get_default ();
             timeout = config.get_int ("plugin",
                                       "TIMEOUT",
-                                      PLUGIN_TIMEOUT,
+                                      0,
                                       int.MAX);
         } catch (Error error) {};
 
+        if (timeout == 0) {
+            debug ("Plugin timeout disabled...");
+
+            return;
+        }
+
         Timeout.add_seconds (timeout, () => {
             if (this.plugin_loader.list_plugins ().size == 0) {
                 warning (ngettext ("No plugins found in %d second; giving up...",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]