File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Do not edit. Generated by the configure script.
2
+ { 'variables' : { }}
Original file line number Diff line number Diff line change @@ -290,6 +290,14 @@ var Timeout = function(after) {
290
290
this . _repeat = false ;
291
291
} ;
292
292
293
+
294
+ function unrefdHandle ( ) {
295
+ this . owner . _onTimeout ( ) ;
296
+ if ( ! this . owner . repeat )
297
+ this . owner . close ( ) ;
298
+ }
299
+
300
+
293
301
Timeout . prototype . unref = function ( ) {
294
302
if ( ! this . _handle ) {
295
303
@@ -303,7 +311,8 @@ Timeout.prototype.unref = function() {
303
311
if ( delay < 0 ) delay = 0 ;
304
312
exports . unenroll ( this ) ;
305
313
this . _handle = new Timer ( ) ;
306
- this . _handle . ontimeout = this . _onTimeout ;
314
+ this . _handle . owner = this ;
315
+ this . _handle . ontimeout = unrefdHandle ;
307
316
this . _handle . start ( delay , 0 ) ;
308
317
this . _handle . domain = this . domain ;
309
318
this . _handle . unref ( ) ;
You can’t perform that action at this time.
0 commit comments