Don't open data files again if the store has been closed.. on windows tests were failing since the open data files could not be deleted.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@396583 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-04-24 15:41:59 +00:00
parent 32bdc1b9e8
commit 53454ccb36
1 changed files with 2 additions and 0 deletions

View File

@ -183,6 +183,8 @@ public class KahaStore implements Store{
}
protected synchronized void initialize() throws IOException{
if( closed )
throw new IOException("Store has been closed.");
if(!initialized){
initialized=true;
directory=new File(name);