Skip to content

Commit 0df0cea

Browse files
committed
Move check for end of reply sequence from callback to handler
1 parent 624e8df commit 0df0cea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/xcore.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,8 @@ XClient.prototype.expectReplyHeader = function()
507507
var result = unpack.call(client, data, opt_data);
508508
var callback = handler[1];
509509
var multiReply = handler[2];
510-
var handled = callback(null, result);
511-
if (!multiReply || handled) {
510+
callback(null, result);
511+
if (!multiReply || result === undefined) {
512512
delete client.replies[seq_num];
513513
}
514514
}

0 commit comments

Comments
 (0)