mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Call schedule() instead of directly invoking the scheduled executor
in AbstractXMPPConnection.
This commit is contained in:
parent
72a2014572
commit
cd05d5f5d8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue