mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-26 07:58:52 +01:00
replace assert that occasionally fails with logging. Not sure why it
fails, but I just drop the (timer) event in the non-debug case so it's probably harmless.
This commit is contained in:
parent
5123bebe50
commit
ac875894a6
1 changed files with 9 additions and 3 deletions
|
@ -287,11 +287,17 @@ and_util_engineProgressCallback( XW_UtilCtxt* uc )
|
|||
bool
|
||||
utilTimerFired( XW_UtilCtxt* uc, XWTimerReason why, int handle )
|
||||
{
|
||||
bool handled;
|
||||
AndUtil* util = (AndUtil*)uc;
|
||||
TimerStorage* timerStorage = &util->timerStorage[why];
|
||||
XP_ASSERT( handle == (int)timerStorage );
|
||||
return (handle == (int)timerStorage)
|
||||
&& (*timerStorage->proc)( timerStorage->closure, why );
|
||||
if ( handle == (int)timerStorage ) {
|
||||
handled = (*timerStorage->proc)( timerStorage->closure, why );
|
||||
} else {
|
||||
XP_LOGF( "%s: mismatch: handle=%d; timerStorage=%d", __func__,
|
||||
handle, (int)timerStorage );
|
||||
handled = false;
|
||||
}
|
||||
return handled;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Reference in a new issue