XMLHTTPRequest: handle network level failures.
This commit is contained in:
parent
34e8181cc9
commit
0d22797b90
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue