Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed bug in JAMailboxFactory.removeClosable

  • Loading branch information...
commit 4be54121e9045ad02ab9961724c4ff0da40fc073 1 parent 7481bd5
@laforge49 authored
View
2  pom.xml
@@ -5,7 +5,7 @@
<groupId>org.agilewiki.jactor</groupId>
<artifactId>jactor</artifactId>
- <version>4.6.0</version>
+ <version>4.6.1.0</version>
<packaging>jar</packaging>
<name>JActor</name>
<description>Lock-free Java Actors</description>
View
2  release.xml
@@ -4,7 +4,7 @@
<groupId>org.agilewiki.jactor</groupId>
<artifactId>jactor</artifactId>
- <version>4.6.1-SNAPSHOT</version>
+ <version>4.6.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>JActor</name>
<description>Lock-free Java Actors</description>
View
4 src/main/java/org/agilewiki/jactor/JAMailboxFactory.java
@@ -89,12 +89,14 @@ public ThreadManager getThreadManager() {
@Override
public boolean addClosable(Closable closable) {
+ if (closable == null)
+ throw new IllegalArgumentException("may not be null");
return closables.add(closable);
}
@Override
public boolean removeClosable(Closable closable) {
- return closables.add(closable);
+ return closables.remove(closable);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.