修复可能存在的bug

This commit is contained in:
xiongziliang 2018-12-17 09:24:39 +08:00
parent f881860adb
commit e52c67b3af

View File

@ -1066,7 +1066,7 @@ inline void RtspSession::startListenPeerUdpData(int trackIdx) {
return false; return false;
} }
struct sockaddr addr=*pPeerAddr; struct sockaddr addr=*pPeerAddr;
strongSelf->async_first([weakSelf,pBuf,addr,iTrackIdx]() { strongSelf->async([weakSelf,pBuf,addr,iTrackIdx]() {
auto strongSelf=weakSelf.lock(); auto strongSelf=weakSelf.lock();
if(!strongSelf) { if(!strongSelf) {
return; return;