unbreak temp module exe event handlers

returning 0/DONE breaks successive handlers, and that's really bad if you're breaking handlers for exes that you don't own.
This commit is contained in:
Mike Blumenkrantz 2013-10-28 13:22:28 +00:00
parent b67381916e
commit c2e0679c3d
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ _temperature_cb_exe_data(void *data, __UNUSED__ int type, void *event)
ev = event;
inst = data;
if (ev->exe != inst->tempget_exe) return ECORE_CALLBACK_PASS_ON;
if ((!inst->tempget_exe) || (ev->exe != inst->tempget_exe)) return ECORE_CALLBACK_PASS_ON;
temp = -999;
if ((ev->lines) && (ev->lines[0].line))
{
@ -70,7 +70,7 @@ _temperature_cb_exe_del(void *data, __UNUSED__ int type, void *event)
ev = event;
inst = data;
if (ev->exe != inst->tempget_exe) return ECORE_CALLBACK_PASS_ON;
if ((!inst->tempget_exe) || (ev->exe != inst->tempget_exe)) return ECORE_CALLBACK_PASS_ON;
inst->tempget_exe = NULL;
return ECORE_CALLBACK_DONE;
}