From cd05d5f5d83386463c9e90ed45fd102463a7c514 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 25 Feb 2018 11:29:39 +0100 Subject: [PATCH] Call schedule() instead of directly invoking the scheduled executor in AbstractXMPPConnection. --- .../java/org/jivesoftware/smack/AbstractXMPPConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);