wait_for_notify cancels previous wait_for_notify