mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +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
|
@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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue