diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2012-08-11 18:31:44 -0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-08-12 01:15:08 +0200 |
commit | 320ae691d8e6305f69263ee526ef1c164dd40208 (patch) | |
tree | 756ce82ac3abab9b3268ef99c2ab291f5b582029 /lib/timers.js | |
parent | 382f22f22959e686b10a5f42333c468e6654cb97 (diff) | |
download | node-new-320ae691d8e6305f69263ee526ef1c164dd40208.tar.gz |
timers: make unref'd timeouts execute in a domain
Diffstat (limited to 'lib/timers.js')
-rw-r--r-- | lib/timers.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/timers.js b/lib/timers.js index 2d50cbddec..897b64f912 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -257,6 +257,7 @@ Timeout.prototype.unref = function() { this._handle = new Timer(); this._handle.ontimeout = this._onTimeout; this._handle.start(this._when - Date.now(), 0); + this._handle.domain = this.domain; this._handle.unref(); } else { this._handle.unref(); |