1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

Remove some duplicate IQ code

and some dead code in Socks5PacketUtils.
This commit is contained in:
Florian Schmaus 2014-07-04 23:51:00 +02:00
parent afd1f6bc36
commit f05b208120
3 changed files with 4 additions and 69 deletions

View file

@ -667,14 +667,7 @@ public class AgentSession {
private void handlePacket(Packet packet) throws NotConnectedException {
if (packet instanceof OfferRequestProvider.OfferRequestPacket) {
// Acknowledge the IQ set.
IQ reply = new IQ() {
public String getChildElementXML() {
return null;
}
};
reply.setPacketID(packet.getPacketID());
reply.setTo(packet.getFrom());
reply.setType(IQ.Type.result);
IQ reply = IQ.createResultIQ((IQ) packet);
connection.sendPacket(reply);
fireOfferRequestEvent((OfferRequestProvider.OfferRequestPacket)packet);