Skip to content

Commit

Permalink
Dispatch client presence operations after device deletion to a dedica…
Browse files Browse the repository at this point in the history
…ted executor
  • Loading branch information
eager-signal committed Dec 22, 2023
1 parent b9dd9fc commit ad6b99b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,11 @@ private CompletableFuture<Account> removeDevice(final UUID accountIdentifier, fi

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,
Expand Down

0 comments on commit ad6b99b

Please sign in to comment.