mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
防止访问空指针
This commit is contained in:
parent
02da99e285
commit
c025b5092d
@ -967,10 +967,7 @@ void WebRtcTransportImp::onBeforeEncryptRtp(const char *buf, int &len, void *ctx
|
||||
void WebRtcTransportImp::onShutdown(const SockException &ex){
|
||||
WarnL << ex.what();
|
||||
unrefSelf(ex);
|
||||
if (_session) {
|
||||
_session->shutdown(ex);
|
||||
_session = nullptr;
|
||||
}
|
||||
_session->shutdown(ex);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user