Skip to content

Commit 9f38faa

Browse files
author
Matthew Sackman
committed
neatness codified - tidy up the consumer mapping as necessary
1 parent 9e3d06c commit 9f38faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/rabbitmq/client/impl/ChannelN.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public void releaseChannelNumber() {
341341
return false;
342342
} else if (method instanceof Basic.Cancel) {
343343
Basic.Cancel m = (Basic.Cancel)method;
344-
Consumer callback = _consumers.get(m.consumerTag);
344+
Consumer callback = _consumers.remove(m.consumerTag);
345345
if (callback == null) {
346346
callback = defaultConsumer;
347347
}

0 commit comments

Comments
 (0)