Fix test, remove redundant operation
This commit is contained in:
parent
dfb7d3c382
commit
8f4142f87e
|
@ -789,7 +789,6 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle
|
|||
if (conn != null)
|
||||
{
|
||||
conn.fail(ActiveMQMessageBundle.BUNDLE.clientExited(conn.getRemoteAddress()));
|
||||
removeConnection(id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ public class ConsumerStuckTest extends ServiceTestBase
|
|||
|
||||
long timeStart = System.currentTimeMillis();
|
||||
|
||||
while (timeout > System.currentTimeMillis() && server.getSessions().size() != 0 && server.getConnectionCount() != 0)
|
||||
while (timeout > System.currentTimeMillis() && (server.getSessions().size() != 0 || server.getConnectionCount() != 0))
|
||||
{
|
||||
Thread.sleep(10);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue