re-implement the status page
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user