diff --git a/src/generator.c b/src/generator.c index 340b67e0..b3a6072a 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1477,7 +1477,7 @@ static void *proxy_send(void *arg) LOGWARNING("Proxy %d:%s failed to send msg in proxy_send, dropping to reconnect", proxy->id, proxy->si->url); Close(cs->fd); - if (!parent_proxy && !subproxy->disabled) + if (!parent_proxy(subproxy) && !subproxy->disabled) disable_subproxy(gdata, proxy, subproxy); } }