Packet filtered counter fixed
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user