domain-middleware
domain-middleware copied to clipboard
cleanly monitor worker.disconnect and server.close
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.