break on successful proxy

This commit is contained in:
Roy Olav Purser 2021-05-11 15:55:58 +02:00
parent c9fe190cca
commit 02f8786414
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -181,6 +181,7 @@ class MainHandler(tornado.web.RequestHandler):
proxy_list.remove(proxy_temp)
proxies[provider] = [proxy_temp] + proxy_list
proxy = proxy_temp
break
if proxy is not None:
try:
streams = proxy.stream.streams(src)