A workaround for the problem where the loop deadlocks the current thread.