[gnome-builder] threading: clear restart timeout source



commit 7aa8a7faee903cbbd7ac0c531f02ab456d6a2886
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jul 6 14:24:16 2021 -0700

    threading: clear restart timeout source
    
    This is our handler for the source, so it needs to clear the value before
    returning G_SOURCE_REMOVE.

 src/libide/threading/ide-subprocess-supervisor.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libide/threading/ide-subprocess-supervisor.c 
b/src/libide/threading/ide-subprocess-supervisor.c
index a7c7dd766..30baf6a93 100644
--- a/src/libide/threading/ide-subprocess-supervisor.c
+++ b/src/libide/threading/ide-subprocess-supervisor.c
@@ -252,6 +252,7 @@ ide_subprocess_supervisor_start_in_usec_cb (gpointer data)
   g_assert (IDE_IS_SUBPROCESS_SUPERVISOR (self));
   g_assert (priv->supervising == TRUE);
 
+  priv->restart_timeout = 0;
   priv->supervising = FALSE;
   ide_subprocess_supervisor_start (self);
 


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