summaryrefslogtreecommitdiff
path: root/lib/timers.js
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2012-08-11 18:31:44 -0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-08-12 01:15:08 +0200
commit320ae691d8e6305f69263ee526ef1c164dd40208 (patch)
tree756ce82ac3abab9b3268ef99c2ab291f5b582029 /lib/timers.js
parent382f22f22959e686b10a5f42333c468e6654cb97 (diff)
downloadnode-new-320ae691d8e6305f69263ee526ef1c164dd40208.tar.gz
timers: make unref'd timeouts execute in a domain
Diffstat (limited to 'lib/timers.js')
-rw-r--r--lib/timers.js1
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();