From 181a14c70e6e2bd39404f6432723ddcd0c664c52 Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Sat, 21 Dec 2024 07:41:19 -0500 Subject: [PATCH] unset event handler when halting --- src/Support/Traits/Emitter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Support/Traits/Emitter.php b/src/Support/Traits/Emitter.php index d52e14b93..a77562ff6 100644 --- a/src/Support/Traits/Emitter.php +++ b/src/Support/Traits/Emitter.php @@ -162,6 +162,7 @@ public function fireEvent($event, $params = [], $halt = false) continue; } if ($halt) { + unset($this->emitterSingleEventCollection[$event]); return $response; } $result[] = $response;