How to stop thread if using dead proxy?

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
This is probably obvious, but how do I stop a thread if the proxy has died or won't load at the beginning?
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
Set short page loading timoeout
 

vrg5

Client
Регистрация
16.04.2012
Сообщения
23
Благодарностей
0
Баллы
0
You can also do a text check to see if the page has loaded. E.g. after loading a page do a text check for 'Copyright 2013 blabla' or other consistent text on the website to see that it loaded. If the proxy is dead or the page didn't load for any reason the text check will fail. If it fails, exit.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
I usually set unsuccessful exit (red arrow from action where you perform goto webpage after proxy was set).
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)