mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +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:
parent
2cba6a68eb
commit
780872f2ef
1 changed files with 4 additions and 2 deletions
|
@ -793,9 +793,11 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
|||
*/
|
||||
@Override
|
||||
protected void connectInternal() throws SmackException, IOException, XMPPException {
|
||||
throwAlreadyConnectedExceptionIfAppropriate();
|
||||
// Establishes the connection, readers and writers
|
||||
// Establishes the TCP connection to the server and does setup the reader and writer. Throws an exception if
|
||||
// there is an error establishing the connection
|
||||
connectUsingConfiguration();
|
||||
|
||||
// We connected successfully to the servers TCP port
|
||||
socketClosed = false;
|
||||
initConnection();
|
||||
|
||||
|
|
Loading…
Reference in a new issue