1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 17:59:28 +02:00

Fix user actions not extending timeout.

This commit is contained in:
Simo Kinnunen 2014-05-13 12:20:34 +09:00
parent 9b304a939c
commit ed2390592c
2 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,7 @@ var util = require('util')
var wire = require('./')
var log = require('../util/logger').createLogger('wire:router')
var on = EventEmitter.prototype.on
function Router() {
if (!(this instanceof Router)) {
@ -15,7 +16,7 @@ function Router() {
util.inherits(Router, EventEmitter)
Router.prototype.on = function(message, handler) {
return EventEmitter.prototype.on.call(this, message.$code, handler)
return on.call(this, message.$code, handler)
}
Router.prototype.removeListener = function(message, handler) {