From 7f106d8d60275d1d874c955ebc1495e644d77e57 Mon Sep 17 00:00:00 2001 From: Christian Fritz Date: Sat, 11 Jun 2016 12:00:06 -0700 Subject: [PATCH] Fix log.debug fails when waiting for ROS Master #13 Fixes #13. - TODO: currently there is no timeout when failing to connect --- utils/xmlrpc_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/xmlrpc_utils.js b/utils/xmlrpc_utils.js index 93f3d2b..18a504b 100644 --- a/utils/xmlrpc_utils.js +++ b/utils/xmlrpc_utils.js @@ -19,7 +19,7 @@ module.exports = { } log.debug('Trying again in ' + timeout + 'ms'); log.debug('Connection refused during method %s: %j', method, data); - this.call(method, data, resolve, reject, timeout); + this.call(client, method, data, resolve, reject, log, timeout); } else if (err || resp[0] !== 1) { log.debug('Some other error during %s: %s, %j', method, err, resp);