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
......@@ -186,7 +186,7 @@ public:
TurnTransportPimpl::~TurnTransportPimpl()
{
if (relay) {
if (relay && state.load() != RelayState::DOWN) {
try {
pj_turn_sock_destroy(relay);
} catch (...) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment