Fixed kick messages

This commit is contained in:
Shoghi Cervantes
2014-06-25 20:50:16 +02:00
parent 873e35f416
commit 9877271d70
4 changed files with 5 additions and 14 deletions

View File

@ -215,7 +215,7 @@ class ServerScheduler{
if($this->asyncTasks > 0){ //Garbage collector
$this->asyncPool->collect(function (AsyncTask $task){
if($task->isCompleted() or ($task->isFinished() and !$task->hasResult())){
if($task->isFinished()){
--$this->asyncTasks;
$task->onCompletion(Server::getInstance());
return true;