]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_commands.cxx
XMLHttpRequest: only set failure signal on failure
[flightgear.git] / src / Main / fg_commands.cxx
index a406a226bf895b03b4bca49564ce1bda1be44818..8a62cad4e98f960d167f7c95c60979414fe86d0e 100644 (file)
@@ -1375,7 +1375,7 @@ protected:
     // now the response data is output, signal Nasal / listeners
         if (_complete) _complete->setBoolValue(true);
         if (_status) _status->setIntValue(response);
-        if (_failed) _failed->setBoolValue(failed);
+        if (_failed && failed) _failed->setBoolValue(true);
     }
 };