Skip to content

Commit

Permalink
Rollback removed set _clock
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyoufang authored and freak4pc committed Feb 8, 2020
1 parent d7babdc commit 8c7a971
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RxSwift/Schedulers/VirtualTimeScheduler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ open class VirtualTimeScheduler<Converter: VirtualTimeConverterType>
break
}

if self._converter.compareVirtualTime(next.time, self.clock).greaterThan {
self._clock = next.time
}
next.invoke()
self._schedulerQueue.remove(next)
} while self._running
Expand Down

0 comments on commit 8c7a971

Please sign in to comment.