[gnome-builder/wip/chergert/jsonrpc-gvariant] supervisor: require at least 250 msec between spawns



commit a913aee5a218ee679fb68f96992872303ed846c2
Author: Christian Hergert <chergert redhat com>
Date:   Sat Mar 18 00:07:21 2017 -0700

    supervisor: require at least 250 msec between spawns

 libide/subprocess/ide-subprocess-supervisor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/subprocess/ide-subprocess-supervisor.c b/libide/subprocess/ide-subprocess-supervisor.c
index 401f7ff..db7fbd5 100644
--- a/libide/subprocess/ide-subprocess-supervisor.c
+++ b/libide/subprocess/ide-subprocess-supervisor.c
@@ -246,7 +246,7 @@ ide_subprocess_supervisor_start_in_usec (IdeSubprocessSupervisor *self,
    * have elapsed since our last spawn time. The amount of time required
    * will be given to us in the @usec parameter.
    */
-  g_timeout_add (usec / 1000L,
+  g_timeout_add (MAX (250, usec / 1000L),
                  ide_subprocess_supervisor_start_in_usec_cb,
                  g_object_ref (self));
 


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