diff --git a/src/amplitude-client.js b/src/amplitude-client.js index f7aaf23a..65343e3e 100644 --- a/src/amplitude-client.js +++ b/src/amplitude-client.js @@ -1594,6 +1594,7 @@ AmplitudeClient.prototype.sendEvents = function sendEvents() { // here. // } } catch (e) { + scope.removeEvents(Infinity, Infinity, 0, 'No request sent', {reason: 'Request failed (e.g. it was blocked).'}); // utils.log('failed upload'); } });