mirror of
https://github.com/danbulant/node-x11
synced 2026-06-17 05:31:05 +00:00
unly delete seq2stack entry when in debug mode
This commit is contained in:
parent
75ad329b4f
commit
0113db66af
1 changed files with 2 additions and 1 deletions
|
|
@ -451,7 +451,8 @@ XClient.prototype.expectReplyHeader = function()
|
|||
if (!handled)
|
||||
client.emit('error', error);
|
||||
// TODO: should we delete seq2stack and reply even if there is no handler?
|
||||
delete client.seq2stack[seq_num];
|
||||
if (client.options.debug)
|
||||
delete client.seq2stack[seq_num];
|
||||
delete client.replies[seq_num];
|
||||
} else
|
||||
client.emit('error', error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue