Packet filtered counter fixed

This commit is contained in:
DomySh
2022-06-30 00:02:01 +02:00
parent a064652fcf
commit 4174654c3c
7 changed files with 11 additions and 10 deletions

View File

@@ -58,7 +58,7 @@ class Proxy:
regex_id = stdout_line.split()[1]
async with self.filter_map_lock:
self.filter_map[regex_id].blocked+=1
if self.callback_blocked_update: await self.callback_blocked_update(self.filter_map[regex_id])
if self.callback_blocked_update: self.callback_blocked_update(self.filter_map[regex_id])
except Exception:
return await self.process.wait()
else:

View File

@@ -215,7 +215,8 @@ class ServiceManager:
return
else:
await asyncio.sleep(.5)
except Exception:
except asyncio.CancelledError:
self._set_status(STATUS.STOP)
await self.proxy.stop()
self.starter = asyncio.create_task(func())