Commit 39023ed4 authored by Olivier Crête's avatar Olivier Crête

turn: Send queued TURN messages to the turn server

It was trying to send queued messages to the final destination instead
of going through the TURN server
parent cbf17ada
......@@ -471,7 +471,8 @@ socket_dequeue_all_data (TurnPriv *priv, const NiceAddress *to)
(SendData *) g_queue_pop_head(send_queue);
nice_debug ("dequeuing data");
nice_socket_send (priv->base_socket, to, data->data_len, data->data);
nice_socket_send (priv->base_socket, &priv->server_addr, data->data_len,
data->data);
g_free (data->data);
g_slice_free (SendData, data);
......
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