mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
oopsie woopsie
I made a fucky wucky! a wittle fucko boingo!
This commit is contained in:
parent
6ac0c517f5
commit
a0f3c03b50
@ -265,8 +265,8 @@ abstract class AsyncTask extends Collectable{
|
||||
|
||||
final public function __destruct(){
|
||||
$this->reallyDestruct();
|
||||
if(self::$threadLocalStorage !== null){
|
||||
unset(self::$threadLocalStorage[spl_object_hash($this)]);
|
||||
if(self::$threadLocalStorage !== null and isset(self::$threadLocalStorage[$h = spl_object_hash($this)])){
|
||||
unset(self::$threadLocalStorage[$h]);
|
||||
if(self::$threadLocalStorage->count() === 0){
|
||||
self::$threadLocalStorage = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user