Skip to content
Snippets Groups Projects
Commit d2ad4603 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

peer_connection: avoid segfault if tls already destroyed

Change-Id: I4959b7573cbc64852aac5f32ef996f621498ecae
parent 623f8082
Branches
No related tags found
No related merge requests found
......@@ -449,7 +449,7 @@ public:
const IceSocketEndpoint* iceSocket = (const IceSocketEndpoint*)(ep_);
if (iceSocket) {
iceSocket->underlyingICE()->setOnShutdown([this]() {
tls->shutdown();
if (tls) tls->shutdown();
});
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment