Skip to content

Commit

Permalink
Merge pull request #408 from ReactiveX/jakew/remove-negative-check/20…
Browse files Browse the repository at this point in the history
…18-01-02

Remove superfluous negative check.
  • Loading branch information
JakeWharton authored Jan 3, 2018
2 parents ffac4af + 5dc34ee commit 83d9423
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Disposable schedule(Runnable run, long delay, TimeUnit unit) {
Message message = Message.obtain(handler, scheduled);
message.obj = this; // Used as token for batch disposal of this worker's runnables.

handler.sendMessageDelayed(message, Math.max(0L, unit.toMillis(delay)));
handler.sendMessageDelayed(message, unit.toMillis(delay));

// Re-check disposed state for removing in case we were racing a call to dispose().
if (disposed) {
Expand Down

0 comments on commit 83d9423

Please sign in to comment.