From: alex Date: Wed, 5 Jun 2019 09:45:17 +0000 (+0200) Subject: Assign source out of the for loop X-Git-Tag: 0.1.17~202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ff29177d4ae4f1f2eff108c9f2e506f41072282;p=platform%2Fupstream%2Flibnice.git Assign source out of the for loop --- 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;