Ignore:
Timestamp:
2006-12-13T14:37:26+01:00 (19 years ago)
Author:
imi
Message:
  • fixed bug where cancelling download made other download attempts impossible
  • fixed bug under Linux when download finished while in different virtual desktop
  • fixed concurrent exception sometime arise when downloading incomplete data
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/io/OsmServerReader.java

    r160 r175  
    2727                URL url = new URL(urlStr);
    2828                activeConnection = (HttpURLConnection)url.openConnection();
     29                if (cancel) {
     30                        activeConnection.disconnect();
     31                        return null;
     32                }
    2933                System.out.println("got return: "+activeConnection.getResponseCode());
    3034                activeConnection.setConnectTimeout(15000);
Note: See TracChangeset for help on using the changeset viewer.