Mercurial > dovecot > core-2.2
changeset 21423:eac612cea455
master: Remove unnecessary service listener start
The listening was already started later on in the same function. Also
in some cases it would have been started unnecessarily, like when service
was stopped or more processes were created immediately.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 17 Jan 2017 19:49:39 +0200 |
parents | aa57a51c8ce6 |
children | e94ac3f36692 |
files | src/master/service-monitor.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/service-monitor.c Wed Jan 18 04:46:15 2017 -0500 +++ b/src/master/service-monitor.c Tue Jan 17 19:49:39 2017 +0200 @@ -658,11 +658,7 @@ service = process->service; if (status == 0) { - /* success */ - if (service->listen_pending && - !service->list->destroying) - service_monitor_listen_start(service); - /* one success resets all failures */ + /* success - one success resets all failures */ service->have_successful_exits = TRUE; service->exit_failures_in_sec = 0; service->throttle_secs =