aboutsummaryrefslogtreecommitdiff
path: root/src/SelfIvyClient.java
diff options
context:
space:
mode:
authorjestin2004-12-23 16:12:25 +0000
committerjestin2004-12-23 16:12:25 +0000
commitccaba8df37149f7e744ebf9ff6a1dc350a32942b (patch)
tree04ecb2aeab20dec5e3ed13419e4dc50390f2a316 /src/SelfIvyClient.java
parent031f955efd5fa20041f7344041f290b15b20c019 (diff)
downloadivy-java-ccaba8df37149f7e744ebf9ff6a1dc350a32942b.zip
ivy-java-ccaba8df37149f7e744ebf9ff6a1dc350a32942b.tar.gz
ivy-java-ccaba8df37149f7e744ebf9ff6a1dc350a32942b.tar.bz2
ivy-java-ccaba8df37149f7e744ebf9ff6a1dc350a32942b.tar.xz
preparing the 1.2.7 release
Diffstat (limited to 'src/SelfIvyClient.java')
-rw-r--r--src/SelfIvyClient.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/SelfIvyClient.java b/src/SelfIvyClient.java
index a96e0d2..acd2d66 100644
--- a/src/SelfIvyClient.java
+++ b/src/SelfIvyClient.java
@@ -6,6 +6,8 @@
* @since 1.2.4
*
* CHANGELOG:
+ * 1.2.7:
+ * - fixes a bug on unbindMsg(String) ( closes Matthieu's burreport )
* 1.2.6:
* - jakarta regexp are not threadsafe, adding extra synch blocks
* 1.2.5:
@@ -63,10 +65,12 @@ class SelfIvyClient extends IvyClient {
throw new IvyException("client wants to remove an unexistant regexp "+id);
}
+ // unbinds to the first regexp
synchronized protected boolean unBindMsg(String re) {
+ if (!regexpsText.contains(re)) return false;
for (Enumeration e=regexpsText.keys();e.hasMoreElements();) {
Integer k = (Integer)e.nextElement();
- if ( ((String)regexps.get(k)).compareTo(re) == 0) {
+ if ( ((String)regexpsText.get(k)).compareTo(re) == 0) {
try {
bus.unBindMsg(k.intValue());
} catch (IvyException ie) {