cleanly monitor worker.disconnect and server.close
Offirmo opened this issue · comments
instead of try/catching server.close
and worker.disconnect
, we could listen to their close
and disconnect
signal and abstain from repeating if already closed / shut.
More elegant I think.
PR pending.
Note : my fork https://github.com/Offirmo/domain-middleware has this issue solved.