I got it, with some other logic.
I had to redefine global variable while inside the thread, then increase it.
Hello, I have one question for threads what i want its to open threads after Status its Ok
Lets say i have Status , TURN ON AND TURN OF
When they are TURN OF dont open all threads if i give it like 5 but check only status but when status going TURN ON open 5 threads and start
and where status goin again on TURN OF they just close browser but dont stop script?
Do you have any ideas?