diff options
author | alex <alex@meetecho.com> | 2019-06-05 11:45:17 +0200 |
---|---|---|
committer | alex <alex@meetecho.com> | 2019-06-05 11:45:17 +0200 |
commit | 1ff29177d4ae4f1f2eff108c9f2e506f41072282 (patch) | |
tree | 5aa8e9988ba687365aecb12ae731275a048a20fc | |
parent | 083ac5a95c80e97c21a244cdc2c249255d0d7268 (diff) | |
download | libnice-1ff29177d4ae4f1f2eff108c9f2e506f41072282.tar.gz |
Assign source out of the for loop
-rw-r--r-- | socket/udp-turn.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |