Dispatch client presence operations after device deletion to a dedicated executor
This commit is contained in:
parent
b9dd9fc47d
commit
ad6b99be6a
|
@ -353,11 +353,11 @@ public class AccountsManager {
|
|||
|
||||
return CompletableFuture.failedFuture(throwable);
|
||||
})
|
||||
.whenComplete((ignored, throwable) -> {
|
||||
.whenCompleteAsync((ignored, throwable) -> {
|
||||
if (throwable == null) {
|
||||
clientPresenceManager.disconnectPresence(accountIdentifier, deviceId);
|
||||
RedisOperation.unchecked(() -> clientPresenceManager.disconnectPresence(accountIdentifier, deviceId));
|
||||
}
|
||||
});
|
||||
}, clientPresenceExecutor);
|
||||
}
|
||||
|
||||
public Account changeNumber(final Account account,
|
||||
|
|
Loading…
Reference in New Issue