Skip to content

Commit c694a2a

Browse files
committed
Revert the change in recursiveAction
1 parent faf9d65 commit c694a2a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/rx/Scheduler.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@ public void call() {
120120
if (!mas.isUnsubscribed()) {
121121
action.call();
122122
long nextTick = startInNanos + (++count * periodInNanos);
123-
SerialSubscription s = new SerialSubscription();
124-
// Should call `mas.set` before `schedule`, or the new Subscription may replace the old one.
125-
mas.set(s);
126-
s.set(schedule(this, nextTick - TimeUnit.MILLISECONDS.toNanos(now()), TimeUnit.NANOSECONDS));
123+
mas.set(schedule(this, nextTick - TimeUnit.MILLISECONDS.toNanos(now()), TimeUnit.NANOSECONDS));
127124
}
128125
}
129126
};

0 commit comments

Comments
 (0)