Workaround broken timer code (SIGSEGV on recent gcc)

This commit is contained in:
o9000 2017-12-27 21:15:12 +01:00
parent 750cbd572c
commit a7ca1b739b

View file

@ -392,7 +392,7 @@ void callback_multi_timeout(void *arg)
while (it) {
GSList *next = it->next;
timeout *t = it->data;
if (++t->multi_timeout->current_count >= t->multi_timeout->count_to_expiration) {
if (t->multi_timeout && ++t->multi_timeout->current_count >= t->multi_timeout->count_to_expiration) {
t->_callback(t->arg);
if (multi_timeouts && g_hash_table_lookup(multi_timeouts, t)) {
// Timer still exists