Skip to content

Commit de60c33

Browse files
author
Simon MacMullen
committed
If the connection breaks, don't hang awaiting this.
1 parent b6e77e5 commit de60c33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/src/com/rabbitmq/examples/perf/Consumer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ public void handleDelivery(String consumerTag, Envelope envelope, BasicPropertie
121121
}
122122
}
123123

124+
@Override
125+
public void handleShutdownSignal(String consumerTag, ShutdownSignalException sig) {
126+
latch.countDown();
127+
}
128+
124129
@Override
125130
public void handleCancel(String consumerTag) throws IOException {
126131
System.out.println("Consumer cancelled by broker. Re-consuming.");

0 commit comments

Comments
 (0)