From fab92ef114d43e1e54711b1b0ef16e7d20e2605b Mon Sep 17 00:00:00 2001 From: ebernhardson Date: Tue, 3 Apr 2012 15:23:25 -0700 Subject: [PATCH] fix bug preventing stopListening from working --- lib/Resque/Event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Resque/Event.php b/lib/Resque/Event.php index 2264ae2..930c067 100644 --- a/lib/Resque/Event.php +++ b/lib/Resque/Event.php @@ -73,7 +73,7 @@ class Resque_Event $key = array_search($callback, self::$events[$event]); if ($key !== false) { - unset(self::$events[$key]); + unset(self::$events[$event][$key]); } return true; @@ -86,4 +86,4 @@ class Resque_Event { self::$events = array(); } -} \ No newline at end of file +}