Bugfix in client cleanup

This commit is contained in:
ha7ilm 2016-06-21 11:38:25 +02:00
parent 77db628903
commit 020af11d1a
1 changed files with 5 additions and 3 deletions

View File

@ -563,7 +563,9 @@ class WebRXHandler(BaseHTTPRequestHandler):
if extension == "wrx" and ( (not anyStringsPresentInUserAgent(("Chrome","Firefox","Googlebot","iPhone","iPad","iPod"))) if 'user-agent' in self.headers.keys() else True ) and (not request_param.count("unsupported")):
self.send_302("upgrade.html")
return
if extension == "wrx" and cfg.max_clients<=len(clients):
if extension == "wrx":
cleanup_clients(False)
if cfg.max_clients<=len(clients):
self.send_302("retry.html")
return
self.send_response(200)