Moved a check inside an event loop `Runnable` for memory consistency.