Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveRequestTokenTask.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveRequestTokenTask.java
r8444 r8510 49 49 protected void cancel() { 50 50 canceled = true; 51 synchronized (this) {51 synchronized (this) { 52 52 if (client != null) { 53 53 client.cancel(); … … 75 75 protected void realRun() throws SAXException, IOException, OsmTransferException { 76 76 try { 77 synchronized (this) {77 synchronized (this) { 78 78 client = new OsmOAuthAuthorizationClient(parameters); 79 79 } 80 80 requestToken = client.getRequestToken(getProgressMonitor().createSubTaskMonitor(0, false)); 81 } catch (OsmTransferCanceledException e) {81 } catch (OsmTransferCanceledException e) { 82 82 return; 83 83 } catch (OsmOAuthAuthorizationException e) { … … 86 86 requestToken = null; 87 87 } finally { 88 synchronized (this) {88 synchronized (this) { 89 89 client = null; 90 90 }
Note:
See TracChangeset
for help on using the changeset viewer.