From 18e327aa54acedf472117bb5dc4e7016881932c0 Mon Sep 17 00:00:00 2001 From: Nicholas Lafrance Date: Mon, 27 Apr 2020 18:10:04 -0500 Subject: [PATCH] Need to clear previous state after a restart (Or just everytime we start) to prevent channel unbindings from occurring. --- src/Bayeux/BayeuxClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Bayeux/BayeuxClient.php b/src/Bayeux/BayeuxClient.php index e2defd0..7f9d45a 100644 --- a/src/Bayeux/BayeuxClient.php +++ b/src/Bayeux/BayeuxClient.php @@ -163,6 +163,7 @@ protected function createClient(string $version = "44.0") public function start() { + $this->previousStates = []; $this->setState(new State\HandshakeState($this, $this->logger)); do { $this->state->handle();