changeset 2239:7625a42eb8a9

Fix event source not being properly initialized Thanks to Holger WeiƟ and Myhailo Danylenko.
author Mikael Berthe <mikael@lilotux.net>
date Tue, 24 Nov 2015 18:58:45 +0100
parents a34c8b41e0b5
children 45bab5858d81
files mcabber/mcabber/events.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/events.c	Sat Nov 21 18:43:10 2015 +0100
+++ b/mcabber/mcabber/events.c	Tue Nov 24 18:58:45 2015 +0100
@@ -93,7 +93,9 @@
   event->notify      = notify;
 
   if (timeout)
-    g_timeout_add_seconds(timeout, evs_check_timeout, event);
+    event->source = g_timeout_add_seconds(timeout, evs_check_timeout, event);
+  else
+    event->source = 0;
 
   evs_list = g_slist_append(evs_list, event);
   return stridn;