File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
src/com/rabbitmq/client/impl Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ public void handleSignal(ShutdownSignalException signal) {
7171 try {
7272 channel .processShutdownSignal (signal );
7373 } catch (ShutdownSignalException sse ) {
74- // Ignore already closed channels
74+ // Notify channels that are waiting for rpc
75+ channel .notifyOutstandingRpc (signal );
7576 }
7677 }
7778 }
Original file line number Diff line number Diff line change @@ -296,17 +296,16 @@ public void close(int closeCode,
296296 k .getReply (-1 );
297297 } catch (TimeoutException ise ) {
298298 // Will never happen since we wait infinitely
299- } catch (ShutdownSignalException sse ) {
300- // Ignore.
301- }
299+ } finally {
302300
303- // Now we know everything's been cleaned up and there should
304- // be no more surprises arriving on the wire. Release the
305- // channel number, and dissociate this ChannelN instance from
306- // our connection so that any further frames inbound on this
307- // channel can be caught as the errors they are.
308- releaseChannelNumber ();
309- notifyListeners ();
301+ // Now we know everything's been cleaned up and there should
302+ // be no more surprises arriving on the wire. Release the
303+ // channel number, and dissociate this ChannelN instance from
304+ // our connection so that any further frames inbound on this
305+ // channel can be caught as the errors they are.
306+ releaseChannelNumber ();
307+ notifyListeners ();
308+ }
310309 }
311310
312311 /**
You can’t perform that action at this time.
0 commit comments