Change the occuring conditon of file sending end event.
Merge remote-tracking branch 'origin/riversyang'