45f75d5ce0
The current code would work just fine for a connection having multiple endpoints. However, when there is only one endpoint ConnectionAttemptState.nextAddress() would return null, since connectionEndpointIterator has already iterated over the only possible value in the contructor leading to a NullPointerException. This means that during establishment of a connection having multiple endpoints, the first value inside connectionEndpointIterator would always be overlooked. |
||
---|---|---|
.. | ||
rce | ||
BundleAndDefer.java | ||
BundleAndDeferCallback.java | ||
ConnectionAttemptState.java | ||
TCPInitializer.java | ||
TcpHostEvent.java | ||
XMPPTCPConnection.java | ||
XMPPTCPConnectionConfiguration.java | ||
XmppTcpTransportModule.java | ||
XmppTcpTransportModuleDescriptor.java | ||
package-info.java |