Commit 33b98870 authored by Sébastien Blin's avatar Sébastien Blin

turn: avoid to crash if pj_turn_sock_alloc fails

Change-Id: Ie257ba783b6dbb1a7b2fd95771d73275a5c264bf
parent c25567fe
......@@ -276,9 +276,13 @@ TurnTransport::TurnTransport(const TurnTransportParams& params)
// TURN connection/allocation
JAMI_DBG() << "Connecting to TURN " << server.toString(true, true);
try {
pimpl_->relay, &pimpl_->relayAddr, server.getPort(),
nullptr, &cred, &turn_alloc_param);
} catch (const sip_utils::PjsipFailure& e) {
JAMI_ERR("pj_turn_sock_alloc failed: %s", e.what());
TurnTransport::~TurnTransport() = default;
Markdown is supported
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