diff --git a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java index 8c589db99..06af3d2ba 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java @@ -1546,7 +1546,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { } } }; - removeCallbacksService.schedule(new Runnable() { + schedule(new Runnable() { @Override public void run() { boolean removed = removeAsyncStanzaListener(packetListener); @@ -1601,7 +1601,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { } }; addSyncStanzaListener(packetListener, packetFilter); - removeCallbacksService.schedule(new Runnable() { + schedule(new Runnable() { @Override public void run() { removeSyncStanzaListener(packetListener);