[gnome-builder] supervisor: require at least 250 msec between spawns
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] supervisor: require at least 250 msec between spawns
- Date: Sat, 18 Mar 2017 09:29:27 +0000 (UTC)
commit 2327258a22348c537c09dd777b58800e8aa43849
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]