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:
parent
afd1f6bc36
commit
f05b208120
3 changed files with 4 additions and 69 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue