Opened 18 years ago
Closed 18 years ago
#87 closed defect (fixed)
When osm server is not responding during "Downloading data", attempt to cancel hangs
Reported by: | johnw | Owned by: | imi |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | unspecified | Version: | |
Keywords: | Cc: |
Description
When osm server is not responding during "Downloading data", attempt to cancel just sits there showing "Aborting...". There seems to be no way to get out of JOSM in this situation. Switching away to another task and returning later, the main JOSM window is displayed, but not the dialog. Using alt+tab, 2 'things' can be seen, no doubt the main window and the dialog, but this still doesn't redisplay the dialog. Minimising the main window restores the dialog, then restoring the main window still retains the dialog, so display is ok again. But this is irrelevant, what is important is that 5 minutes later the abort still hasn't happened.
Version was downloaded 2007-01-21.
I did not found a clean way in Java to cancel an HttpUrlConnection. Calling to disconnect() blocks and the described problem occours.
Now, a timeout of a minute or so should close the dialog box and the "try to disconnect" will be backgrounded, removing most of the problems. (Note, that you also can just close the dialog by pressing the close button in the dialog's title bar).