Whenever the internet gets disconnected, the program blindly keeps trying for an excessive amount of time to download the file, which sometimes causes the system to freeze.
I suggest adding a line of code that checks for internet connectivity and then tries to download the file, and if offline, an error should indicate the same.
Whenever the internet gets disconnected, the program blindly keeps trying for an excessive amount of time to download the file, which sometimes causes the system to freeze.
I suggest adding a line of code that checks for internet connectivity and then tries to download the file, and if offline, an error should indicate the same.