mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
fix bug preventing stopListening from working
This commit is contained in:
parent
76c06a1349
commit
fab92ef114
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user