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:
parent
d6b05bcff7
commit
d1e87c1a54
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user