currItems=connectionsToServers.values().toArray(currItems);
while(currItems[(int)(requestToServer.get()%connectionsToServers.size())].getClientState() != ClientState.BOUND)
{
requestToServer.getAndIncrement();
}
<BUG>currItems[(int)(requestToServer.getAndIncrement()%connectionsToServers.size())].sendSmppRequest(sessionId, packet);
}</BUG>
public void sendRequestToClient(Pdu packet, Long serverSessionId)
{
balancerRunner.balancerContext.smppRequestsToClient.getAndIncrement();

currItems=connectionsToServers.values().toArray(currItems);
while(currItems[(int)(requestToServer.get()%connectionsToServers.size())].getClientState() != ClientState.BOUND)
{
requestToServer.getAndIncrement();
}
currItems[(int)(requestToServer.getAndIncrement()%connectionsToServers.size())].sendSmppRequest(sessionId, packet);
}
}
public void sendRequestToClient(Pdu packet, Long serverSessionId)
{
balancerRunner.balancerContext.smppRequestsToClient.getAndIncrement();
