666667668669670671672673674675676
reconnectSessions(oldConnection, reconnectAttempts); if (oldConnection != null) { oldConnection.destroy(); } } else { CoreRemotingConnection connectionToDestory = connection;
674675676677678679680681682683684
else { CoreRemotingConnection connectionToDestory = connection; if (connectionToDestory != null) { connectionToDestory.destroy(); } connection = null; }
729730731732733734735736737738739
reconnectSessions(oldConnection, reconnectAttempts, me); if (oldConnection != null) { oldConnection.destroy(); } if (connection != null) { callFailoverListeners(FailoverEventType.FAILOVER_COMPLETED);
743744745746747748749750751752753
else { CoreRemotingConnection connectionToDestory = connection; if (connectionToDestory != null) { connectionToDestory.destroy(); } connection = null; } if (connection == null)
709710711712713714715716717718719
reconnectSessions(oldConnection, reconnectAttempts); if (oldConnection != null) { oldConnection.destroy(); } if (connection != null) { callFailoverListeners(FailoverEventType.FAILOVER_COMPLETED);
723724725726727728729730731732733
665666667668669670671672673674675
673674675676677678679680681682683
615616617618619620621622623624625
else { reconnectSessions(oldConnection, reconnectAttempts); } oldConnection.destroy(); } else { connection.destroy();
713714715716717718719720721722723