1
0
Fork 0
mirror of https://github.com/de2tla2f/pymaster.git synced 2024-11-27 05:11:29 +00:00

add servers cleanup by timeout

This commit is contained in:
ghost 2024-01-09 04:10:47 +02:00
parent 2b6872e04f
commit 65e8183817

View file

@ -92,6 +92,11 @@ class PyMaster:
for i in self.serverList:
# Cleanup servers by timeout
if time() > i.die:
self.serverList.remove(i)
continue
# Use pregenerated address string
packet += i.queryAddr