Browse Source

pipeline: Fix Thread::bind_thread() assertion on Android

rdb 3 years ago
parent
commit
98d70147bd
1 changed files with 1 additions and 2 deletions
  1. 1 2
      panda/src/pipeline/threadPosixImpl.cxx

+ 1 - 2
panda/src/pipeline/threadPosixImpl.cxx

@@ -337,7 +337,7 @@ root_func(void *data) {
 }
 }
 
 
 /**
 /**
- * Called by get_current_thread() if the current therad pointer is null; checks
+ * Called by get_current_thread() if the current thread pointer is null; checks
  * whether it might be the main thread.
  * whether it might be the main thread.
  */
  */
 Thread *ThreadPosixImpl::
 Thread *ThreadPosixImpl::
@@ -347,7 +347,6 @@ init_current_thread() {
     thread = Thread::get_main_thread();
     thread = Thread::get_main_thread();
     _current_thread = thread;
     _current_thread = thread;
   }
   }
-  nassertr(thread != nullptr, nullptr);
   return thread;
   return thread;
 }
 }