re-implement the status page

This commit is contained in:
Jakob Ketterl
2019-05-10 23:00:18 +02:00
parent dac35ae526
commit 1c4543b7bf
2 changed files with 20 additions and 2 deletions

View File

@ -521,7 +521,7 @@ class ClientReporterThread(threading.Thread):
def run(self):
while (self.doRun):
n = len(self.clients)
n = self.clientCount()
for c in self.clients:
c.write_clients(n)
time.sleep(3)
@ -533,6 +533,9 @@ class ClientReporterThread(threading.Thread):
raise TooManyClientsException()
self.clients.append(client)
def clientCount(self):
return len(self.clients)
def removeClient(self, client):
try:
self.clients.remove(client)