Change the occuring conditon of file sending end event.