Skip to content

Commit

Permalink
fixed bug in JAMailboxFactory.removeClosable
Browse files Browse the repository at this point in the history
  • Loading branch information
laforge49 committed Jan 3, 2013
1 parent 7481bd5 commit 4be5412
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion release.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/agilewiki/jactor/JAMailboxFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 4be5412

Please sign in to comment.