fix bug preventing stopListening from working

This commit is contained in:
ebernhardson 2012-04-03 15:23:25 -07:00
parent 76c06a1349
commit fab92ef114

View File

@ -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();
}
}
}