comparison 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
comparison
equal deleted inserted replaced
2238:a34c8b41e0b5 2239:7625a42eb8a9
91 event->callback = callback; 91 event->callback = callback;
92 event->data = udata; 92 event->data = udata;
93 event->notify = notify; 93 event->notify = notify;
94 94
95 if (timeout) 95 if (timeout)
96 g_timeout_add_seconds(timeout, evs_check_timeout, event); 96 event->source = g_timeout_add_seconds(timeout, evs_check_timeout, event);
97 else
98 event->source = 0;
97 99
98 evs_list = g_slist_append(evs_list, event); 100 evs_list = g_slist_append(evs_list, event);
99 return stridn; 101 return stridn;
100 } 102 }
101 103