From 0d3e1b90f65b93764e696dc1bb7234db10b3fc99 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Mon, 14 May 2018 20:25:23 +0100 Subject: [PATCH] Allowed reopen for non named threads --- ExpCore/server.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ExpCore/server.lua b/ExpCore/server.lua index 7a07df0c..ed79419c 100644 --- a/ExpCore/server.lua +++ b/ExpCore/server.lua @@ -294,9 +294,11 @@ function Server._thread:close() end end) end - if is_type(self.name,'string') then threads.paused[self.name]=self.uuid self.opened=nil - if self.reopen == true then self:open() end - else threads.all[uuid] = nil threads.all._n = threads.all._n-1 end + self.opened=nil + if self.reopen == true then self:open() else + if is_type(self.name,'string') then threads.paused[self.name]=self.uuid + else threads.all[uuid] = nil threads.all._n = threads.all._n-1 end + end return _return end