aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Moesch <florian@moesch.org>2011-08-11 16:23:33 +0200
committerFlorian Moesch <florian@moesch.org>2011-08-11 16:23:33 +0200
commitb4a8f742dae6d801be2993f404721cdf74be2493 (patch)
tree3a258fefe27e48f725088922cbe060a31875f892
parenta2753235e840ac601416b06339fa39c87938cef4 (diff)
downloadcgeo-b4a8f742dae6d801be2993f404721cdf74be2493.zip
cgeo-b4a8f742dae6d801be2993f404721cdf74be2493.tar.gz
cgeo-b4a8f742dae6d801be2993f404721cdf74be2493.tar.bz2
`recaptchaText` was synchronized thread save in `setText()` but not in `getText()`
-rw-r--r--src/cgeo/geocaching/cgSearchThread.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgeo/geocaching/cgSearchThread.java b/src/cgeo/geocaching/cgSearchThread.java
index 0cd99ce..b3c21ed 100644
--- a/src/cgeo/geocaching/cgSearchThread.java
+++ b/src/cgeo/geocaching/cgSearchThread.java
@@ -40,7 +40,7 @@ public class cgSearchThread extends Thread {
notify();
}
- public String getText() {
+ public synchronized String getText() {
return recaptchaText;
}
}