diff options
author | Bert Belder <bertbelder@gmail.com> | 2011-06-08 04:35:50 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2011-06-08 05:06:13 +0200 |
commit | d9aa9b54cfb829bd0da9dc4b9efefa3cec1455b9 (patch) | |
tree | 0d47bcf077f61622f41f623ed503097a8435a67e /lib/dns.js | |
parent | 5c9a262eb0796981fdd07414ac61d2ff8e05b0be (diff) | |
download | node-new-d9aa9b54cfb829bd0da9dc4b9efefa3cec1455b9.tar.gz |
Use timer_wrap instead of the old timer binding
Diffstat (limited to 'lib/dns.js')
-rw-r--r-- | lib/dns.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dns.js b/lib/dns.js index 3ee997b2fa..268230ed46 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -26,11 +26,11 @@ var IOWatcher = process.binding('io_watcher').IOWatcher; var watchers = {}; var activeWatchers = {}; -var Timer = process.binding('timer').Timer; +var Timer = process.binding('timer_wrap').Timer; var timer = new Timer(); -timer.callback = function() { +timer.ontimeout = function() { var sockets = Object.keys(activeWatchers); for (var i = 0, l = sockets.length; i < l; i++) { var socket = sockets[i]; |