1
0
mirror of https://git.kore.io/kore.git synced 2024-11-16 15:06:37 +01:00

deal with PyObject_CallObject() returning NULL.

This commit is contained in:
Joris Vink 2019-01-15 10:20:13 +01:00
parent d6b05bcff7
commit d1e87c1a54

View File

@ -1484,7 +1484,7 @@ pytimer_run(void *arg, u_int64_t now)
PyErr_Clear();
ret = PyObject_CallObject(timer->callable, NULL);
Py_DECREF(ret);
Py_XDECREF(ret);
if (timer->flags & KORE_TIMER_ONESHOT) {
timer->run = NULL;