YUKI Hiroshi
null+****@clear*****
Mon Apr 20 11:39:38 JST 2015
YUKI Hiroshi 2015-04-20 11:39:38 +0900 (Mon, 20 Apr 2015) New Revision: 6746f0654822261e6bc8f52235d3bd5f92e6ec81 https://github.com/droonga/express-droonga/commit/6746f0654822261e6bc8f52235d3bd5f92e6ec81 Message: Fix indent Modified files: lib/droonga-protocol/connection.js Modified: lib/droonga-protocol/connection.js (+14 -14) =================================================================== --- lib/droonga-protocol/connection.js 2015-04-20 11:39:15 +0900 (cc4ac61) +++ lib/droonga-protocol/connection.js 2015-04-20 11:39:38 +0900 (b6fd1f1) @@ -259,20 +259,20 @@ Connection.prototype.emitMessage = function(type, body, callback, options) { options.timeout = toInteger(options.timeout) || DEFAULT_RESPONSE_TIMEOUT; if (options.timeout > -1) { - timeoutId = setTimeout((function() { - this.removeAllListeners(event); - if (sendingMessages) - sendingMessages.callback = null; - if (!callback) - return; - try { - callback(ERROR_GATEWAY_TIMEOUT, null); - callback = null; - } - catch(error) { - this._logger.error(error); - } - }).bind(this), options.timeout); + timeoutId = setTimeout((function() { + this.removeAllListeners(event); + if (sendingMessages) + sendingMessages.callback = null; + if (!callback) + return; + try { + callback(ERROR_GATEWAY_TIMEOUT, null); + callback = null; + } + catch(error) { + this._logger.error(error); + } + }).bind(this), options.timeout); } } this._sendingMessages[id] = sendingMessages; -------------- next part -------------- HTML����������������������������...Descargar