mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +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){
|
void WebRtcTransportImp::onShutdown(const SockException &ex){
|
||||||
WarnL << ex.what();
|
WarnL << ex.what();
|
||||||
unrefSelf(ex);
|
unrefSelf(ex);
|
||||||
if (_session) {
|
|
||||||
_session->shutdown(ex);
|
_session->shutdown(ex);
|
||||||
_session = nullptr;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user