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 +}