diff options
Diffstat (limited to 'itjs')
-rwxr-xr-x | itjs/http.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/itjs/http.js b/itjs/http.js index faafe56..5773cda 100755 --- a/itjs/http.js +++ b/itjs/http.js @@ -184,8 +184,11 @@ dataReady: function(data, callid) stop: function() { - try { this.req.aborted = true; this.req.abort(); } // Set aborted flag as IE9 throws error c00c023f when accessing aborted request - catch (e) { } + try { + this.req.aborted = true; // Set aborted flag as IE9 throws error c00c023f when accessing aborted request + if (this.req.readyState >= 2) // Do not abort request never used before as it can throw error e.g. on Firefox + this.req.abort(); + } catch (e) { } this.unlink(this.callid); }, |