1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-23 02:58:00 +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:
Florian Schmaus 2013-10-27 17:40:06 +00:00 committed by flow
parent 44c3214539
commit 418dd24392
4 changed files with 0 additions and 31 deletions

View file

@ -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

View file

@ -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.
* *

View file

@ -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",

View file

@ -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) {