[Pkg-telepathy-commits] [libnice] 192/265: turn: Don't overwrite source, destroy it first
Simon McVittie
smcv at debian.org
Wed May 14 12:05:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository libnice.
commit 075d90655a1ea5118e5a8821249d2a5a9982ec9b
Author: Olivier Crête <olivier.crete at collabora.com>
Date: Sat Mar 29 21:23:40 2014 -0400
turn: Don't overwrite source, destroy it first
---
socket/turn.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/socket/turn.c b/socket/turn.c
index a3a920d..ad01c84 100644
--- a/socket/turn.c
+++ b/socket/turn.c
@@ -1567,6 +1567,10 @@ priv_schedule_tick (TurnPriv *priv)
timeout = stun_timer_remainder (¤t_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,
timeout,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git
More information about the Pkg-telepathy-commits
mailing list