parent 80a38f0d50
author DomySh <me@domysh.com> 1656456810 +0200 committer DomySh <me@domysh.com> 1656457473 +0200 Small Fixes (Stable only with 1 worker!)
This commit is contained in:
@@ -69,7 +69,6 @@ class Proxy:
|
||||
async with self.status_change:
|
||||
if self.isactive():
|
||||
self.process.kill()
|
||||
self.process = None
|
||||
return False
|
||||
return True
|
||||
|
||||
@@ -92,9 +91,7 @@ class Proxy:
|
||||
await self.update_config(filters_codes)
|
||||
|
||||
def isactive(self):
|
||||
if self.process and not self.process.returncode is None:
|
||||
self.process = None
|
||||
return True if self.process else False
|
||||
return self.process and self.process.returncode is None
|
||||
|
||||
async def pause(self):
|
||||
if self.isactive():
|
||||
|
||||
Reference in New Issue
Block a user