From 9f7f90efe43bd0254752f41eb4694335a8c79505 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 25 Aug 2003 15:29:14 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/Project.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/Project.java b/src/main/org/apache/tools/ant/Project.java index 360cef1dd..d5f130854 100644 --- a/src/main/org/apache/tools/ant/Project.java +++ b/src/main/org/apache/tools/ant/Project.java @@ -387,7 +387,7 @@ public class Project { * @param listener The listener to remove from the list. * Should not be null. */ - 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();