Commit Graph

1 Commits (cc8250fab86486632fdeb63892be735d7628cd13)

Author SHA1 Message Date
Matt Sergeant aa8655a0da
async-hooks,net: ensure asyncId=null if no handle
If the .listen() hasn't been called on the server, there is no handle
object. In this case use null as the triggerAsyncId.

Fixes: https://github.com/nodejs/node/issues/13548
PR-URL: https://github.com/nodejs/node/pull/13938
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
2017-07-05 15:51:08 +02:00