From f6de62267b699549cabde3c02cf79e584e70df7b Mon Sep 17 00:00:00 2001 From: mikel_etxebarria Date: Thu, 10 Mar 2016 10:09:10 +0100 Subject: [PATCH] Empty queue after flush --- ApplicationInsights/Telemetry_Client.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ApplicationInsights/Telemetry_Client.php b/ApplicationInsights/Telemetry_Client.php index 2b29989..1f18849 100644 --- a/ApplicationInsights/Telemetry_Client.php +++ b/ApplicationInsights/Telemetry_Client.php @@ -279,5 +279,6 @@ public function trackException(\Exception $ex, $properties = NULL, $measurements public function flush() { $this->_channel->send(); + $this->_channel->setQueue([]); } } \ No newline at end of file