aboutsummaryrefslogtreecommitdiff
path: root/src/SelfIvyClient.java
diff options
context:
space:
mode:
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) {