Ignore:
Timestamp:
2021-08-20T13:53:36+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #21231 - make sure remote control request handlers do not block thread with time-consuming operations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddNodeHandler.java

    r14221 r18134  
    66import java.awt.Point;
    77import java.util.Collections;
    8 import java.util.Map;
    98
    109import org.openstreetmap.josm.actions.AutoScaleAction;
     
    3938    @Override
    4039    protected void handleRequest() {
    41         GuiHelper.runInEDTAndWait(() -> addNode(args));
     40        GuiHelper.runInEDT(this::addNode);
    4241    }
    4342
     
    7877    /**
    7978     * Adds a node, implements the GET /add_node?lon=...&lat=... request.
    80      * @param args request arguments
    8179     */
    82     private void addNode(Map<String, String> args) {
     80    private void addNode() {
    8381
    8482        // Parse the arguments
Note: See TracChangeset for help on using the changeset viewer.