mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42:05 +01:00
SMACK-373 Don't remove listeners after a disconnect() , keep state of Connection between disconnect() and connect()/login()
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_3_2@13793 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
44c3214539
commit
418dd24392
4 changed files with 0 additions and 31 deletions
|
@ -144,14 +144,6 @@ class PacketReader {
|
||||||
listenerExecutor.shutdown();
|
listenerExecutor.shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Cleans up all resources used by the packet reader.
|
|
||||||
*/
|
|
||||||
void cleanup() {
|
|
||||||
connection.recvListeners.clear();
|
|
||||||
connection.collectors.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets the parser using the latest connection's reader. Reseting the parser is necessary
|
* Resets the parser using the latest connection's reader. Reseting the parser is necessary
|
||||||
* when the plain connection has been secured or when a new opening stream element is going
|
* when the plain connection has been secured or when a new opening stream element is going
|
||||||
|
|
|
@ -125,14 +125,6 @@ class PacketWriter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Cleans up all resources used by the packet writer.
|
|
||||||
*/
|
|
||||||
void cleanup() {
|
|
||||||
connection.interceptors.clear();
|
|
||||||
connection.sendListeners.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the next available packet from the queue for writing.
|
* Returns the next available packet from the queue for writing.
|
||||||
*
|
*
|
||||||
|
|
|
@ -582,13 +582,6 @@ public class Roster {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Cleans up all resources used by the roster.
|
|
||||||
*/
|
|
||||||
void cleanup() {
|
|
||||||
rosterListeners.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the key to use in the presenceMap for a fully qualified XMPP ID.
|
* Returns the key to use in the presenceMap for a fully qualified XMPP ID.
|
||||||
* The roster can contain any valid address format such us "domain/resource",
|
* The roster can contain any valid address format such us "domain/resource",
|
||||||
|
|
|
@ -475,15 +475,7 @@ public class XMPPConnection extends Connection {
|
||||||
|
|
||||||
shutdown(unavailablePresence);
|
shutdown(unavailablePresence);
|
||||||
|
|
||||||
if (roster != null) {
|
|
||||||
roster.cleanup();
|
|
||||||
roster = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
wasAuthenticated = false;
|
wasAuthenticated = false;
|
||||||
|
|
||||||
packetWriter.cleanup();
|
|
||||||
packetReader.cleanup();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void sendPacket(Packet packet) {
|
public void sendPacket(Packet packet) {
|
||||||
|
|
Loading…
Reference in a new issue