From f1a795020202b93cdb6fc07bb9f1a4413dcdaeb6 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 19 Nov 2012 23:02:35 +0000 Subject: [PATCH] XMLHttpRequest: only set failure signal on failure Use failure as a real signal property - only set it / fire listeners on a real failure condition. --- src/Main/fg_commands.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index a406a226b..8a62cad4e 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -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); } }; -- 2.39.5