Fix wait for retry

before fixed: wait when before send
after fixed: wait when after sent