diff --git a/pclsync/ptimer.c b/pclsync/ptimer.c index 2b0f703..6067d5f 100644 --- a/pclsync/ptimer.c +++ b/pclsync/ptimer.c @@ -266,9 +266,9 @@ void ptimer_sleep_handler(psync_exception_callback func) { void ptimer_do_notify_exception() { struct exception_list *e; pthread_t threadid; - e = excepions; threadid = pthread_self(); pthread_mutex_lock(&timer_ex_mutex); + e = excepions; while (e) { if (!pthread_equal(threadid, e->threadid)) e->func();