Browse Source

remove must be synchronized, too. Thanks Antoine

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275139 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
9f7f90efe4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/Project.java

+ 1
- 1
src/main/org/apache/tools/ant/Project.java View File

@@ -387,7 +387,7 @@ public class Project {
* @param listener The listener to remove from the list.
* Should not be <code>null</code>.
*/
public void removeBuildListener(BuildListener listener) {
public synchronized void removeBuildListener(BuildListener listener) {
// create a new Vector to avoid ConcurrentModificationExc when
// the listeners get added/removed while we are in fire
Vector newListeners = getBuildListeners();


Loading…
Cancel
Save