Navigation Menu

Skip to content

Commit

Permalink
Apply timeout correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 20, 2015
1 parent 2b88d96 commit 6c915fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga-protocol/connection.js
Expand Up @@ -273,7 +273,7 @@ Connection.prototype.emitMessage = function(type, body, callback, options) {
}
}).bind(this));

if (options.timeout > -1) {
if (envelope.timeout > -1) {
var timeoutMilliseconds = envelope.timeout * ONE_SECOND_IN_MILLISECONDS;
timeoutId = setTimeout((function() {
this._logger.trace('Connection timed out (message id: '+id+')');
Expand Down

0 comments on commit 6c915fe

Please sign in to comment.