mirror of https://github.com/lukechilds/node.git
Browse Source
Don't emit the 'close' event with process.nextTick. Closing a handle is an operation that usually *but not always* completes on the next tick of the event loop, hence using process.nextTick is not reliable. Use a proper handle close callback and emit the 'close' event from inside the callback. Update tests that depend on the intricacies of the old model. Fixes #3459.v0.9.12-release
4 changed files with 23 additions and 21 deletions
Loading…
Reference in new issue