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
1 changed files with 4 additions and 2 deletions

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();