This reverts commit ef27628c6dff6120b0ed0d4728cc6e8a32b7be53. By bypassing setTimeout() it creates other race conditions so this is not the proper fix for the issue.
This reverts commit ef27628c6dff6120b0ed0d4728cc6e8a32b7be53. By bypassing setTimeout() it creates other race conditions so this is not the proper fix for the issue.