git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@613899 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-01-21 14:22:58 +00:00
parent b16d55f79a
commit 17e22cff6f
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ public abstract class Usage<T extends Usage> implements Service {
usageMutex.notifyAll();
for (Iterator<Runnable> iter = new ArrayList<Runnable>(callbacks).iterator(); iter.hasNext();) {
Runnable callback = iter.next();
callback.run();
getExecutor().execute(callback);
}
callbacks.clear();
}