Ignore:
Timestamp:
2009-11-19T13:30:09+01:00 (16 years ago)
Author:
Gubaer
Message:

fixed #3937: Closed changeset (due to timeout) remains in the upload dialog

Location:
trunk/src/org/openstreetmap/josm/io
Files:
1 added
1 deleted
1 edited

Legend:

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

    r2478 r2480  
    338338     * @throws OsmTransferException if something goes wrong.
    339339     * @throws IllegalArgumentException if changeset is null
    340      * @throws IllegalArgumentException if changeset.getId() == 0
     340     * @throws IllegalArgumentException if changeset.getId() <= 0
    341341     *
    342342     */
     
    359359                    monitor
    360360            );
     361        } catch(OsmApiException e) {
     362            if (e.getResponseCode() == HttpURLConnection.HTTP_CONFLICT)
     363                throw new ChangesetClosedException(e.getErrorHeader());
     364            throw e;
    361365        } finally {
    362366            monitor.finishTask();
Note: See TracChangeset for help on using the changeset viewer.