Add this test to the function in order to do nothing if already waiting.