Skip to content

Commit 0abd734

Browse files
author
Steve Powell
committed
Revert the removal of checkShutdown() in QueueingConsumer.
2 parents 0d5c063 + 33cad56 commit 0abd734

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/com/rabbitmq/client/QueueingConsumer.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public QueueingConsumer(Channel ch, BlockingQueue<Delivery> q) {
121121
byte[] body)
122122
throws IOException
123123
{
124+
// checkShutdown();
124125
this._queue.add(new Delivery(envelope, properties, body));
125126
}
126127

@@ -163,6 +164,14 @@ public byte[] getBody() {
163164
}
164165
}
165166

167+
/**
168+
* Check if we are in shutdown mode and if so throw an exception.
169+
*/
170+
private void checkShutdown() {
171+
if (_shutdown != null)
172+
throw Utility.fixStackTrace(_shutdown);
173+
}
174+
166175
/**
167176
* If delivery is not POISON nor null, return it.
168177
* <p/>

0 commit comments

Comments
 (0)