Skip to content

Commit 0c3254d

Browse files
author
Matthias Radestock
committed
merge bug21773 into default
2 parents 5062ebe + 854c925 commit 0c3254d

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/com/rabbitmq/client/impl/AMQConnection.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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

test/src/com/rabbitmq/client/test/BrokenFramesTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)