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:
DomySh
2022-06-29 00:53:30 +02:00
parent 80a38f0d50
commit fad6ad4e68
13 changed files with 80 additions and 127 deletions

View File

@@ -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():

View File

@@ -443,7 +443,6 @@ private:
};
int main(int argc, char* argv[])
{
if (argc < 5)
@@ -500,4 +499,4 @@ int main(int argc, char* argv[])
#endif
return 0;
}
}