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

turn: do not destroy turn if already destroying

Change-Id: I96ab7002326dd22d064090219f35cabbeb4c2567
parent 7001337a
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ public:
TurnTransportPimpl::~TurnTransportPimpl()
{
if (relay) {
if (relay && state.load() != RelayState::DOWN) {
try {
pj_turn_sock_destroy(relay);
} catch (...) {
......
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