From 6591a01459f321f83301c9af375fc3045ba63f0c Mon Sep 17 00:00:00 2001 From: Fierelier Date: Fri, 9 Apr 2021 16:42:52 +0200 Subject: [PATCH] Rename module --- .../parrot text server}/module.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename modules/{[example modules]/-parrot text server => -[example modules]/parrot text server}/module.py (87%) 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