From: James Turner Date: Sat, 29 Dec 2012 14:37:33 +0000 (+0000) Subject: XMLHTTPRequest: handle network level failures. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d22797b90e95808a2748bff5ae891d2f8c3c6c9;p=flightgear.git XMLHTTPRequest: handle network level failures. --- 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();