Create a variable running = true ( bool)
Then start while loop with that runing variable
Then set the running variable To ( Your desired number ! = number from site)
Inside the while loop not outside of it
@L1eve said in Отмена удаления при ошибке:
Можно ли при ошибке сохранять данные из файла и использовать их в другом потоке?
Да. Можно вместо файла использовать глобальную переменную