diff mcabber/mcabber/events.c @ 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 33483d3324cf
children f5402d705f67
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;