mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 09:39:39 +02:00
Move duplicate code into XMPPConnection
from XMPPTCPConnection and XMPPBOSHConnection.
This commit is contained in:
parent
7d72b9b770
commit
f940d72fcd
5 changed files with 62 additions and 177 deletions
|
@ -32,7 +32,6 @@ import org.jivesoftware.smack.PacketCollector;
|
|||
import org.jivesoftware.smack.Roster;
|
||||
import org.jivesoftware.smack.XMPPException;
|
||||
import org.jivesoftware.smack.packet.Packet;
|
||||
import org.jivesoftware.smack.packet.Presence;
|
||||
|
||||
/**
|
||||
* A dummy implementation of {@link XMPPConnection}, intended to be used during
|
||||
|
@ -86,7 +85,7 @@ public class DummyConnection extends XMPPConnection {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void disconnect(Presence unavailablePresence) {
|
||||
protected void shutdown() {
|
||||
user = null;
|
||||
connectionID = null;
|
||||
roster = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue