If you don't have a GPS signal (e.g. being indoor), it will continuously search for the signal. It will stop looking once it finds a signal or the application is forced to quit (e.g. task manager).
Possible solutions:
Add functionality to quit within the program
Add a timeout for getting a location (both network and GPS)
If you don't have a GPS signal (e.g. being indoor), it will continuously search for the signal. It will stop looking once it finds a signal or the application is forced to quit (e.g. task manager).
Possible solutions: