I've been poking around for a couple of hours and can't figure out how to make it work on Linux. I think the issue is that the call is running instantly on Mac and Windows but is being deferred on Linux by which time the flag has been reset, but I could be totally wrong.