Skip to content

Commit ba9c155

Browse files
committed
python3.9 compatibility
1 parent 78856a3 commit ba9c155

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pproxy/__doc__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = "pproxy"
2-
__version__ = "2.4.5"
2+
__version__ = "2.4.6"
33
__license__ = "MIT"
44
__description__ = "Proxy server that can tunnel among remote servers by regex rules."
55
__keywords__ = "proxy socks http shadowsocks shadowsocksr ssr redirect pf tunnel cipher ssl udp"

pproxy/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def main():
635635
print('exit')
636636
if args.sys:
637637
args.sys.clear()
638-
for task in asyncio.Task.all_tasks():
638+
for task in asyncio.all_tasks(loop) if hasattr(asyncio, 'all_tasks') else asyncio.Task.all_tasks():
639639
task.cancel()
640640
for server in servers:
641641
server.close()

0 commit comments

Comments
 (0)