Skip to content

Commit 9b5c5aa

Browse files
committed
made flush do something again
1 parent 567905e commit 9b5c5aa

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/LaunchDarkly/EventProcessor.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,15 @@ public function enqueue($event) {
5959
}
6060

6161
protected function flush() {
62-
// if (empty($this->_queue)) {
63-
// return;
64-
// }
62+
if (empty($this->_queue)) {
63+
return;
64+
}
6565

66-
// $payload = json_encode($this->_queue);
66+
$payload = json_encode($this->_queue);
6767

68-
// $args = $this->createArgs($payload);
68+
$args = $this->createArgs($payload);
6969

70-
// return $this->makeRequest($args);
71-
return true;
70+
return $this->makeRequest($args);
7271
}
7372

7473
private function createArgs($payload) {

0 commit comments

Comments
 (0)