Fix test, remove redundant operation

This commit is contained in:
jbertram 2015-01-26 16:25:30 -06:00
parent dfb7d3c382
commit 8f4142f87e
2 changed files with 1 additions and 2 deletions

View File

@ -789,7 +789,6 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle
if (conn != null)
{
conn.fail(ActiveMQMessageBundle.BUNDLE.clientExited(conn.getRemoteAddress()));
removeConnection(id);
}
}

View File

@ -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);
}