Fix incorrect check in GlobalReceiverRegistry (#2363)

This commit is contained in:
apple502j 2022-07-22 04:07:48 +09:00 committed by GitHub
parent c54bb47e4e
commit 442de8b862
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ public final class GlobalReceiverRegistry<H> {
try { try {
final boolean replaced = this.handlers.putIfAbsent(channelName, handler) == null; final boolean replaced = this.handlers.putIfAbsent(channelName, handler) == null;
if (!replaced) { if (replaced) {
this.handleRegistration(channelName, handler); this.handleRegistration(channelName, handler);
} }