[gnome-system-monitor] proctable: make sure there is only one timeout running



commit c5989bf6a105c990727d12c0773de9e2555b5cf5
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Tue Aug 13 15:32:58 2013 +0200

    proctable: make sure there is only one timeout running

 src/proctable.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 14ac66c..2decae3 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -1234,6 +1234,9 @@ proctable_freeze (GsmApplication *app)
 void
 proctable_thaw (GsmApplication *app)
 {
+    if (app->timeout)
+        return;
+
     app->timeout = g_timeout_add (app->config.update_interval,
                                   cb_timeout,
                                   app);


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