Detach invalid Workers on shutdown

This commit is contained in:
Shoghi Cervantes 2014-08-19 12:46:44 +02:00
parent 973d6b5869
commit 9f34d22013

View File

@ -355,7 +355,8 @@ namespace pocketmine {
$thread->detach();
}elseif($thread instanceof Worker){
$thread->shutdown();
$thread->join();
$thread->kill();
$thread->detach();
}
}
}