From 9f34d22013495527af8516614b0dbc945c333426 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 19 Aug 2014 12:46:44 +0200 Subject: [PATCH] Detach invalid Workers on shutdown --- src/pocketmine/PocketMine.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index f6f64e51d..b6f5461ec 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -355,7 +355,8 @@ namespace pocketmine { $thread->detach(); }elseif($thread instanceof Worker){ $thread->shutdown(); - $thread->join(); + $thread->kill(); + $thread->detach(); } } }