From 1ff29177d4ae4f1f2eff108c9f2e506f41072282 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 5 Jun 2019 11:45:17 +0200 Subject: [PATCH] Assign source out of the for loop --- socket/udp-turn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/socket/udp-turn.c b/socket/udp-turn.c index ddf4aa8..ce6a8fd 100644 --- a/socket/udp-turn.c +++ b/socket/udp-turn.c @@ -1195,11 +1195,12 @@ priv_binding_timeout (gpointer data) } nice_debug ("Permission is about to timeout, sending binding renewal"); + source = g_main_current_source (); /* find current binding and mark it for renewal */ for (i = priv->channels ; i; i = i->next) { ChannelBinding *b = i->data; - source = g_main_current_source (); + if (b->timeout_source == source) { b->renew = TRUE; -- 2.7.4