diff --git a/modules/[example modules]/-parrot text server/module.py b/modules/-[example modules]/parrot text server/module.py similarity index 87% rename from modules/[example modules]/-parrot text server/module.py rename to modules/-[example modules]/parrot text server/module.py index d7bbd8f..68f5364 100644 --- a/modules/[example modules]/-parrot text server/module.py +++ b/modules/-[example modules]/parrot text server/module.py @@ -13,10 +13,9 @@ def textRequest(event,self,requestLength): text = data.decode("utf-8") print(":".join(map(str,self.address))+ " > " +text) if text == "exit": - threadsLock.acquire() - global close - close = True - threadsLock.release() + with threadsLock: + global close + close = True self.closeThread() return True