Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ping: fix servers not supporting the extensions

  • Loading branch information...
commit 447bd160285d743580b9702b5fa82a09976afbc4 1 parent b88524e
Georg Lukas authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/org/yaxim/androidclient/service/SmackableImp.java
3  src/org/yaxim/androidclient/service/SmackableImp.java
View
@@ -16,7 +16,6 @@
import org.jivesoftware.smack.SmackConfiguration;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
-import org.jivesoftware.smack.filter.IQTypeFilter;
import org.jivesoftware.smack.filter.PacketFilter;
import org.jivesoftware.smack.filter.PacketTypeFilter;
import org.jivesoftware.smack.packet.IQ;
@@ -674,7 +673,7 @@ public void processPacket(Packet packet) {
};
- mXMPPConnection.addPacketListener(mPongListener, new IQTypeFilter(IQ.Type.RESULT));
+ mXMPPConnection.addPacketListener(mPongListener, new PacketTypeFilter(IQ.class));
mPingAlarmPendIntent = PendingIntent.getBroadcast(mService.getApplicationContext(), 0, mPingAlarmIntent,
PendingIntent.FLAG_UPDATE_CURRENT);
mPongTimeoutAlarmPendIntent = PendingIntent.getBroadcast(mService.getApplicationContext(), 0, mPongTimeoutAlarmIntent,
Please sign in to comment.
Something went wrong with that request. Please try again.