Changeset 5874 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
- Timestamp:
- 2013-04-16T19:57:43+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r5587 r5874 405 405 dout.writeBytes(request); 406 406 dout.flush(); 407 dout.close();407 Utils.close(dout); 408 408 409 409 // after a successful login the OSM website sends a redirect to a follow up page. Everything … … 419 419 throw new OsmLoginFailedException(e); 420 420 } finally { 421 if (dout != null) { 422 try { 423 dout.close(); 424 } catch(IOException e) { /* ignore */ } 425 } 421 Utils.close(dout); 426 422 synchronized(this) { 427 423 connection = null; … … 496 492 dout.writeBytes(request); 497 493 dout.flush(); 498 dout.close();499 494 500 495 int retCode = connection.getResponseCode(); … … 506 501 throw new OsmOAuthAuthorizationException(e); 507 502 } finally { 508 if (dout != null) { 509 try { 510 dout.close(); 511 } catch(IOException e) { /* ignore */ } 512 } 503 Utils.close(dout); 513 504 synchronized(this) { 514 505 connection = null;
Note:
See TracChangeset
for help on using the changeset viewer.