Changeset 7034 in josm


Ignore:
Timestamp:
2014-05-01T13:43:00+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #9967, see #8465 - RemoteControl broken by changes in r7033

Location:
trunk/src/org/openstreetmap/josm/io/remotecontrol
Files:
2 edited

Legend:

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

    r7033 r7034  
    8383             Integer.toString(server.getLocalPort()));
    8484        while (true) {
    85             try (Socket request = server.accept()) {
     85            try {
     86                @SuppressWarnings("resource")
     87                Socket request = server.accept();
    8688                RequestProcessor.processRequest(request);
    8789            } catch (SocketException se) {
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpsServer.java

    r7033 r7034  
    176176             Integer.toString(server.getLocalPort()));
    177177        while (true) {
    178             try (Socket request = server.accept()) {
     178            try {
     179                @SuppressWarnings("resource")
     180                Socket request = server.accept();
    179181                if (Main.isDebugEnabled() && request instanceof SSLSocket) {
    180182                    SSLSocket sslSocket = (SSLSocket) request;
Note: See TracChangeset for help on using the changeset viewer.