From 6a36c1252d896cc56adcf1ba383588491be1756e Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 14 Jun 2015 19:39:51 -0700 Subject: [PATCH] fix assert that wasn't asserting anything --- xwords4/android/XWords4/jni/xwjni.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xwords4/android/XWords4/jni/xwjni.c b/xwords4/android/XWords4/jni/xwjni.c index 8be134072..29ae3ea43 100644 --- a/xwords4/android/XWords4/jni/xwjni.c +++ b/xwords4/android/XWords4/jni/xwjni.c @@ -126,19 +126,14 @@ map_init( MPFORMAL EnvThreadInfo* ti, JNIEnv* env ) static void map_remove( EnvThreadInfo* ti, JNIEnv* env ) { -#ifdef DEBUG - pthread_t self = pthread_self(); -#endif XP_Bool found = false; pthread_mutex_lock( &ti->mtxThreads ); for ( int ii = 0; !found && ii < ti->nEntries; ++ii ) { found = env == ti->entries[ii].env; if ( found ) { - /* XP_LOGF( "%s: clearing out %dth entry (thread %x)", __func__, ii, */ - /* (int)self ); */ + XP_ASSERT( pthread_self() == ti->entries[ii].owner ); ti->entries[ii].env = NULL; - XP_ASSERT( ti->entries[ii].owner = self ); ti->entries[ii].owner = 0; } }