diff options
Diffstat (limited to 'itjs/http.js')
-rwxr-xr-x | itjs/http.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/itjs/http.js b/itjs/http.js index 8615e98..faafe56 100755 --- a/itjs/http.js +++ b/itjs/http.js @@ -129,7 +129,7 @@ ready_state_changed: function() { var req = this.req; // Avoid race conditions - if (req && (req.readyState == 4)) + if (req && !req.aborted && req.readyState == 4) // Check aborted flag because IE9 throws error c00c023f when accessing aborted request { var data = null; @@ -184,7 +184,7 @@ dataReady: function(data, callid) stop: function() { - try { this.req.abort(); } + try { this.req.aborted = true; this.req.abort(); } // Set aborted flag as IE9 throws error c00c023f when accessing aborted request catch (e) { } this.unlink(this.callid); |