fix re-creation bug

fix re-creation bug
This commit is contained in:
Doiiars 2024-05-20 10:50:33 +08:00 committed by GitHub
parent 264b8a32c2
commit 9c15262015

View file

@ -160,7 +160,6 @@ class ServerProcessor:
# server loop
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((args.host, args.port))
s.listen(1)
logger.info('Listening on'+str((args.host, args.port)))