/* First, try all services without stealing */
for(i = off; i < cnt; i++) {
t = vec[i];
+ if(t->s_status == SERVICE_RUNNING)
+ return t;
if(t->s_quality_index(t) < 10) {
if(loginfo != NULL) {
tvhlog(LOG_NOTICE, "Service",
}
tvhlog(LOG_DEBUG, "Service", "%s: Probing adapter \"%s\" without stealing for service \"%s\"",
loginfo, service_adapter_nicename(t), service_nicename(t));
-
- if(t->s_status == SERVICE_RUNNING)
- return t;
if((r = service_start(t, 0, 0)) == 0)
return t;
if(loginfo != NULL)