Add more synchronization to avoid memory race conditions.
This commit is contained in:
parent
f3c6c7a93f
commit
fb9f5cf8cd
1 changed files with 2 additions and 2 deletions
|
@ -314,7 +314,7 @@ public final class Application implements Runnable {
|
||||||
*
|
*
|
||||||
* @param ignoreDirs comma separated list of directory names to ignore
|
* @param ignoreDirs comma separated list of directory names to ignore
|
||||||
*/
|
*/
|
||||||
public void init(final String ignoreDirs)
|
public synchronized void init(final String ignoreDirs)
|
||||||
throws DatabaseException, IllegalAccessException, InstantiationException,
|
throws DatabaseException, IllegalAccessException, InstantiationException,
|
||||||
ClassNotFoundException, InterruptedException {
|
ClassNotFoundException, InterruptedException {
|
||||||
|
|
||||||
|
@ -356,7 +356,7 @@ public final class Application implements Runnable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initInternal()
|
private synchronized void initInternal()
|
||||||
throws DatabaseException, IllegalAccessException,
|
throws DatabaseException, IllegalAccessException,
|
||||||
InstantiationException, ClassNotFoundException {
|
InstantiationException, ClassNotFoundException {
|
||||||
running = true;
|
running = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue