Browse Source

pipeline: Never try to detach external pthread (fixes Android crash)

rdb 1 year ago
parent
commit
ff3e7da752
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pipeline/threadPosixImpl.I

+ 1 - 1
panda/src/pipeline/threadPosixImpl.I

@@ -19,7 +19,7 @@ ThreadPosixImpl(Thread *parent_obj) :
   _parent_obj(parent_obj)
   _parent_obj(parent_obj)
 {
 {
   _joinable = false;
   _joinable = false;
-  _detached = false;
+  _detached = true;
   _status = S_new;
   _status = S_new;
 #ifdef ANDROID
 #ifdef ANDROID
   _jni_env = nullptr;
   _jni_env = nullptr;