Changeset 18779 in josm for trunk


Ignore:
Timestamp:
2023-07-26T16:22:26+02:00 (16 months ago)
Author:
taylor.smock
Message:

Fix #23078: Improve cancel action on OSM API errors (patch by gaben, heavily modified)

File:
1 edited

Legend:

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

    r18650 r18779  
    249249            return;
    250250        cancel = false;
     251        if (monitor != null) {
     252            monitor.addCancelListener(this::cancel);
     253        }
    251254        try {
    252255            CapabilitiesCache cache = new CapabilitiesCache(monitor, fastFail);
Note: See TracChangeset for help on using the changeset viewer.