Commit 25bc2530 authored by Olivier Crête's avatar Olivier Crête

turn: Don't overwrite source, destroy it first

parent 624bf794
......@@ -1567,6 +1567,10 @@ priv_schedule_tick (TurnPriv *priv)
timeout = stun_timer_remainder (&current_create_permission_msg->timer);
if (timeout > 0) {
if (priv->tick_source_create_permission) {
g_source_destroy (priv->tick_source_create_permission);
g_source_unref (priv->tick_source_create_permission);
priv->tick_source_create_permission =
priv_timeout_add_with_context (priv, FALSE,
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