fixed deadlock bug when uploading video