]> git.mxchange.org Git - flightgear.git/commitdiff
XMLHTTPRequest: handle network level failures.
authorJames Turner <jmt@Bishop.local>
Sat, 29 Dec 2012 14:37:33 +0000 (14:37 +0000)
committerJames Turner <jmt@Bishop.local>
Sat, 29 Dec 2012 14:37:33 +0000 (14:37 +0000)
src/Main/fg_commands.cxx

index 8a62cad4e98f960d167f7c95c60979414fe86d0e..c0e3887195664dd5081dc1b510f62de72bed570b 100644 (file)
@@ -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();