From c90607d7dbde021a8f1b464cb4bef43fbaea0937 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 23 Feb 2018 18:50:02 +0100 Subject: [PATCH] Call schedule() instead of directly invoking the scheduled executor in AbstractXMPPConnection. --- .../java/org/jivesoftware/smack/AbstractXMPPConnection.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 6c2daf59a..e76bdf2e7 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java @@ -1494,7 +1494,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { } } }; - removeCallbacksService.schedule(new Runnable() { + schedule(new Runnable() { @Override public void run() { boolean removed = removeAsyncStanzaListener(stanzaListener); @@ -1560,7 +1560,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { } } }; - removeCallbacksService.schedule(new Runnable() { + schedule(new Runnable() { @Override public void run() { boolean removed = removeAsyncStanzaListener(packetListener); @@ -1619,7 +1619,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { } }; addSyncStanzaListener(packetListener, packetFilter); - removeCallbacksService.schedule(new Runnable() { + schedule(new Runnable() { @Override public void run() { removeSyncStanzaListener(packetListener);