From 0d22797b90e95808a2748bff5ae891d2f8c3c6c9 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 29 Dec 2012 14:37:33 +0000 Subject: [PATCH] XMLHTTPRequest: handle network level failures. --- src/Main/fg_commands.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 8a62cad4e..c0e388719 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -1354,6 +1354,14 @@ protected: propsData += string(s, n); } + virtual void failed() + { + SG_LOG(SG_IO, SG_INFO, "network level failure in RemoteXMLRequest"); + if (_failed) { + _failed->setBoolValue(true); + } + } + virtual void responseComplete() { simgear::HTTP::Request::responseComplete(); -- 2.39.5