Bugfix in client cleanup

This commit is contained in:
ha7ilm 2016-06-21 11:38:25 +02:00
parent 77db628903
commit 020af11d1a

View File

@ -563,9 +563,11 @@ 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")): 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") self.send_302("upgrade.html")
return return
if extension == "wrx" and cfg.max_clients<=len(clients): if extension == "wrx":
self.send_302("retry.html") cleanup_clients(False)
return if cfg.max_clients<=len(clients):
self.send_302("retry.html")
return
self.send_response(200) self.send_response(200)
if(("wrx","html","htm").count(extension)): if(("wrx","html","htm").count(extension)):
self.send_header('Content-type','text/html') self.send_header('Content-type','text/html')