Browse Source

add servers cleanup by timeout

v2
ghost 11 months ago
parent
commit
65e8183817
  1. 5
      pymaster.py

5
pymaster.py

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

Loading…
Cancel
Save