added further error logging for timer closing

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401680
This commit is contained in:
Borja Ferrer 2007-11-11 20:40:08 +00:00
parent 116553f7df
commit 9284a90d41

View File

@ -31,6 +31,7 @@
#include "HandleSys.h"
#include "TimerSys.h"
#include "PluginSys.h"
#include "Logger.h"
#define TIMER_HNDL_CLOSE (1<<9)
@ -153,7 +154,14 @@ void TimerNatives::OnTimerEnd(ITimer *pTimer, void *pData)
}
}
g_HandleSys.FreeHandle(pInfo->TimerHandle, &sec);
if ((herr=g_HandleSys.FreeHandle(pInfo->TimerHandle, &sec)) != HandleError_None)
{
g_Logger.LogError("Invalid timer handle %x (error %d) on plugin %s during timer end",
pInfo->TimerHandle,
herr,
g_PluginSys.FindPluginByContext(pInfo->pContext->GetContext())->GetFilename());
return;
}
DeleteTimerInfo(pInfo);
}