diff --git a/src/mworker.c b/src/mworker.c index 90e96158d..82fa2a2a8 100644 --- a/src/mworker.c +++ b/src/mworker.c @@ -460,7 +460,7 @@ void mworker_cleanlisteners() struct proxy *curproxy; struct peers *curpeers; - /* we might have to unbind some peers sections from some processes */ + /* peers proxies cleanup */ for (curpeers = cfg_peers; curpeers; curpeers = curpeers->next) { if (!curpeers->peers_fe) continue; @@ -472,11 +472,10 @@ void mworker_cleanlisteners() if (curpeers->sync_task) task_destroy(curpeers->sync_task); curpeers->sync_task = NULL; - task_destroy(curpeers->peers_fe->task); - curpeers->peers_fe->task = NULL; curpeers->peers_fe = NULL; } + /* main proxies cleanup */ for (curproxy = proxies_list; curproxy; curproxy = curproxy->next) { int listen_in_master = 0;