mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
peer_connection: ice must be always true
This avoid the TlsSocketEndpoint to use an invalidated ICE. GitLab: #763 Change-Id: If89a70521e523e19c38fd61c20c483b89a9b6413
This commit is contained in:
@ -98,6 +98,8 @@ IceSocketEndpoint::IceSocketEndpoint(std::shared_ptr<IceTransport> ice, bool isS
|
||||
IceSocketEndpoint::~IceSocketEndpoint()
|
||||
{
|
||||
shutdown();
|
||||
if (ice_)
|
||||
dht::ThreadPool::io().run([ice = std::move(ice_)] {});
|
||||
}
|
||||
|
||||
void
|
||||
@ -109,7 +111,6 @@ IceSocketEndpoint::shutdown()
|
||||
// any blocking operation.
|
||||
ice_->cancelOperations();
|
||||
ice_->stop();
|
||||
dht::ThreadPool::io().run([ice = std::move(ice_)] {});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user