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
3bdeca44f2
commit
c90607d7db
1 changed files with 3 additions and 3 deletions
|
@ -1494,7 +1494,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
removeCallbacksService.schedule(new Runnable() {
|
schedule(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
boolean removed = removeAsyncStanzaListener(stanzaListener);
|
boolean removed = removeAsyncStanzaListener(stanzaListener);
|
||||||
|
@ -1560,7 +1560,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
removeCallbacksService.schedule(new Runnable() {
|
schedule(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
boolean removed = removeAsyncStanzaListener(packetListener);
|
boolean removed = removeAsyncStanzaListener(packetListener);
|
||||||
|
@ -1619,7 +1619,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
addSyncStanzaListener(packetListener, packetFilter);
|
addSyncStanzaListener(packetListener, packetFilter);
|
||||||
removeCallbacksService.schedule(new Runnable() {
|
schedule(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
removeSyncStanzaListener(packetListener);
|
removeSyncStanzaListener(packetListener);
|
||||||
|
|
Loading…
Reference in a new issue