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

connectionManager: fix shutdown

Since https://review.jami.net/c/ring-daemon/+/16668 handleControlPacket
contains a shared_ptr to the mxsock pimpl. This means that
closeConnectionsWith don't call the destructor like before and the
shutdown is not triggered. So, force the shutdown to be called
to fix testShutdownCallbacks() and call correctly all shutdown
callbacks.

Change-Id: I8aa8bec05650066261ac61d5fd42e1f20f99830a
parent dfcec83a
No related branches found
No related tags found
No related merge requests found
......@@ -868,6 +868,8 @@ ConnectionManager::closeConnectionsWith(const DeviceId& deviceId)
info->ice_->cancelOperations();
info->ice_->stop();
}
if (info->socket_)
info->socket_->shutdown();
info->responseCv_.notify_all();
if (info->ice_) {
std::unique_lock<std::mutex> lk {info->mutex_};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment