Commit 36f24b82 authored by Christian Hergert's avatar Christian Hergert
Browse files

threading: allow repeated calls to supervisor

parent 4c3ab66d
......@@ -222,6 +222,9 @@ ide_subprocess_supervisor_start (IdeSubprocessSupervisor *self)
g_return_if_fail (IDE_IS_SUBPROCESS_SUPERVISOR (self));
if (priv->supervising)
return;
if (priv->launcher == NULL)
{
g_warning ("Cannot supervise process, no launcher has been set");
......@@ -278,6 +281,9 @@ ide_subprocess_supervisor_stop (IdeSubprocessSupervisor *self)
g_return_if_fail (IDE_IS_SUBPROCESS_SUPERVISOR (self));
if (!priv->supervising)
return;
if (priv->launcher == NULL)
{
g_warning ("Cannot unsupervise process, no launcher has been set");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment