Navigation Menu

Skip to content

Commit

Permalink
Fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 20, 2015
1 parent 929a2e8 commit 6746f06
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lib/droonga-protocol/connection.js
Expand Up @@ -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;
Expand Down

0 comments on commit 6746f06

Please sign in to comment.