Skip to content

Commit 97ed150

Browse files
committed
Cancelled the XMLHttpRequest timeout callback when the request fails (fixes snowplow#348)
1 parent 979d6e3 commit 97ed150

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/js/out_queue.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
clearTimeout(xhrTimeout);
201201
executeQueue();
202202
} else if (xhr.readyState === 4 && xhr.status >= 400) {
203+
clearTimeout(xhrTimeout);
203204
executingQueue = false;
204205
}
205206
};

0 commit comments

Comments
 (0)