File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
src/com/rabbitmq/client/impl
test/src/com/rabbitmq/client/test Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -232,14 +232,6 @@ public void start(boolean insist)
232232 ml .start ();
233233
234234 try {
235- // See bug 17389. The MainLoop could have shut down already in
236- // which case we don't want to wait forever for a reply.
237-
238- // There is no race if the MainLoop shuts down after enqueuing
239- // the RPC because if that happens the channel will correctly
240- // pass the exception into RPC, waking it up.
241- ensureIsOpen ();
242-
243235 AMQP .Connection .Start connStart =
244236 (AMQP .Connection .Start ) connStartBlocker .getReply ().getMethod ();
245237
Original file line number Diff line number Diff line change @@ -77,8 +77,9 @@ public void testNoMethod() throws Exception {
7777 frames .add (new Frame (AMQP .FRAME_HEADER , 0 ));
7878 myFrameHandler .setFrames (frames .iterator ());
7979
80+ AMQConnection conn = new AMQConnection (params , myFrameHandler );
8081 try {
81- new AMQConnection ( params , myFrameHandler ) .start (false );
82+ conn .start (false );
8283 } catch (IOException e ) {
8384 UnexpectedFrameError unexpectedFrameError = findUnexpectedFrameError (e );
8485 assertNotNull (unexpectedFrameError );
You can’t perform that action at this time.
0 commit comments