cluster: disconnect callback should always occur
authorSam Roberts <sam@strongloop.com>
Thu, 12 Dec 2013 18:34:16 +0000 (10:34 -0800)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 31 Dec 2013 19:43:43 +0000 (11:43 -0800)
commit6f40abe2d445516de629d289afe21f458e7cc1e9
tree093c4dddb168165053971bf0232d5d193e261741
parent3c649703c714f9654f8b6f47ecaa7f93c05a38f8
cluster: disconnect callback should always occur

Fixes issue in 0.11 where callback doesn't occur if worker count is
currently zero.  In 0.10 callback occurs after worker count is zero, and
occurs in next tick if worker count is currently zero.
lib/cluster.js
test/simple/test-cluster-disconnect-with-no-workers.js [new file with mode: 0644]