소스 검색

prevent deadlock without threading support

David Rose 17 년 전
부모
커밋
71e44de612
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      panda/src/chan/partBundle.cxx

+ 1 - 1
panda/src/chan/partBundle.cxx

@@ -325,7 +325,7 @@ load_bind_anim(Loader *loader, const Filename &filename,
     anim_index = anim_preload->find_anim(basename);
   }
 
-  if (anim_index < 0 || !allow_async) {
+  if (anim_index < 0 || !allow_async || !Thread::is_threading_supported()) {
     // The animation is not present in the table, or allow_async is
     // false.  Therefore, perform an ordinary synchronous
     // load-and-bind.