Skip to content
Snippets Groups Projects
Unverified Commit 1cc1af80 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

peer_connection: ice must be always true

This avoid the TlsSocketEndpoint to use an invalidated ICE.

GitLab: #763
Change-Id: If89a70521e523e19c38fd61c20c483b89a9b6413
parent 206112b5
Branches
No related tags found
No related merge requests found
...@@ -98,6 +98,8 @@ IceSocketEndpoint::IceSocketEndpoint(std::shared_ptr<IceTransport> ice, bool isS ...@@ -98,6 +98,8 @@ IceSocketEndpoint::IceSocketEndpoint(std::shared_ptr<IceTransport> ice, bool isS
IceSocketEndpoint::~IceSocketEndpoint() IceSocketEndpoint::~IceSocketEndpoint()
{ {
shutdown(); shutdown();
if (ice_)
dht::ThreadPool::io().run([ice = std::move(ice_)] {});
} }
void void
...@@ -109,7 +111,6 @@ IceSocketEndpoint::shutdown() ...@@ -109,7 +111,6 @@ IceSocketEndpoint::shutdown()
// any blocking operation. // any blocking operation.
ice_->cancelOperations(); ice_->cancelOperations();
ice_->stop(); ice_->stop();
dht::ThreadPool::io().run([ice = std::move(ice_)] {});
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment