Skip to content

Commit

Permalink
Delay notifyOutstandingRpc() until after responding to channel.close …
Browse files Browse the repository at this point in the history
…errors.
  • Loading branch information
Steve Powell committed Jan 28, 2011
1 parent 63d7a15 commit 4d8ba38
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/com/rabbitmq/client/impl/ChannelN.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,13 @@ private void asyncShutdown(Command command) throws IOException {
false,
command,
this);
synchronized (_channelMutex) {
processShutdownSignal(signal, true, true);
quiescingTransmit(new Channel.CloseOk());
try {
synchronized (_channelMutex) {
processShutdownSignal(signal, true, false);
quiescingTransmit(new Channel.CloseOk());
}
} finally {
notifyOutstandingRpc(signal);
}
notifyListeners();
}
Expand Down

0 comments on commit 4d8ba38

Please sign in to comment.