Переглянути джерело

set_failed on p3dcert failure

David Rose 16 роки тому
батько
коміт
56bbb780ee
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      direct/src/plugin/p3dInstance.cxx

+ 4 - 0
direct/src/plugin/p3dInstance.cxx

@@ -2979,6 +2979,10 @@ report_package_done(P3DPackage *package, bool success) {
   
   
     if (success) {
     if (success) {
       mark_p3d_untrusted();
       mark_p3d_untrusted();
+    } else if (!_p3d_trusted) {
+      // Oops, too bad.  Couldn't get the p3dcert package, which means
+      // we can't approve the instance.
+      set_failed();
     }
     }
     return;
     return;
   }
   }