Skip to content

Commit bffae76

Browse files
author
Nitesh Kant
committed
Fixed: monitors are not registered with servo
1 parent 9489f39 commit bffae76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rx-netty-servo/src/main/java/io/reactivex/netty/servo/RefCountingMonitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void onCompleted(Object monitor) {
4343
}
4444

4545
public void onSubscribe(Object monitor) {
46-
if (subscriptionCount.incrementAndGet() == 0) {
46+
if (subscriptionCount.getAndIncrement() == 0) {
4747
ServoUtils.registerObject(monitorId, monitor);
4848
}
4949
}

0 commit comments

Comments
 (0)