Skip to content

Commit 970e2ce

Browse files
committed
make sure flushing the queue actually flushes it
1 parent b7a007d commit 970e2ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LaunchDarkly/EventProcessor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public function flush() {
4949

5050
$payload = json_encode($this->_queue);
5151

52+
$this->_queue = array();
53+
5254
return $this->_eventPublisher->publish($payload);
5355
}
5456

0 commit comments

Comments
 (0)