Dispatch client presence operations after device deletion to a dedicated executor

This commit is contained in:
Chris Eager 2023-12-21 18:39:26 -06:00 committed by Chris Eager
parent b9dd9fc47d
commit ad6b99be6a
1 changed files with 3 additions and 3 deletions

View File

@ -353,11 +353,11 @@ public class AccountsManager {
return CompletableFuture.failedFuture(throwable); return CompletableFuture.failedFuture(throwable);
}) })
.whenComplete((ignored, throwable) -> { .whenCompleteAsync((ignored, throwable) -> {
if (throwable == null) { if (throwable == null) {
clientPresenceManager.disconnectPresence(accountIdentifier, deviceId); RedisOperation.unchecked(() -> clientPresenceManager.disconnectPresence(accountIdentifier, deviceId));
} }
}); }, clientPresenceExecutor);
} }
public Account changeNumber(final Account account, public Account changeNumber(final Account account,