Commit 4dd22b94 authored by Timothy J Fontaine's avatar Timothy J Fontaine Committed by Ben Noordhuis
Browse files

cluster: avoid race enabling debugger in worker

Previously if a worker's state machine had already transitioned into the
'listening' state when it received the message enabling the debugger,
the worker would never enable its debugger.

Change the logic to allow the 'listening' as a valid state for enabling
the debugger.

Fixes: https://github.com/joyent/node/issues/6440
Original-PR-URL: https://github.com/joyent/node/pull/9037


Signed-off-by: default avatarJulien Gilli <julien.gilli@joyent.com>

Fixes: https://github.com/iojs/io.js/issues/340
PR-URL: https://github.com/iojs/io.js/pull/501


Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
Reviewed-By: default avatarBert Belder <bertbelder@gmail.com>
Reviewed-By: default avatarRod Vagg <rod@vagg.org>
parent 6b91c78e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment