1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 00:02:06 +01:00

Remove superflous throwAlreadyConnected…Exception

in XMPPTCPConnection. connectInternal() is only called by
AbstractXMPPConnection.connect() which does already invoke this method.
This commit is contained in:
Florian Schmaus 2015-01-25 16:25:22 +01:00
parent 2cba6a68eb
commit 780872f2ef

View file

@ -793,9 +793,11 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
*/ */
@Override @Override
protected void connectInternal() throws SmackException, IOException, XMPPException { protected void connectInternal() throws SmackException, IOException, XMPPException {
throwAlreadyConnectedExceptionIfAppropriate(); // Establishes the TCP connection to the server and does setup the reader and writer. Throws an exception if
// Establishes the connection, readers and writers // there is an error establishing the connection
connectUsingConfiguration(); connectUsingConfiguration();
// We connected successfully to the servers TCP port
socketClosed = false; socketClosed = false;
initConnection(); initConnection();