From f76ee7659a70b3d982127a23c640b2a56b5f44b1 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sun, 9 Jun 2013 12:45:28 +0100 Subject: [PATCH] service: don't use service instance if its in error state This is almost certainly wrong. but it does avoid the livelock problems I was having and will do until I can get Andreas to take a look. --- src/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index e04a8fc2..d591dd09 100644 --- a/src/service.c +++ b/src/service.c @@ -275,7 +275,7 @@ service_find_instance(channel_t *ch, struct service_instance_list *sil, // Check if any service is already running, if so, use that LIST_FOREACH(si, sil, si_link) - if(si->si_s->s_status == SERVICE_RUNNING) + if(si->si_s->s_status == SERVICE_RUNNING && si->si_error == 0) return si; // Check if any is idle