Adding syncronization

This commit is contained in:
luca.frosini 2023-07-11 09:32:42 +02:00
parent 89d3604886
commit 080255e4ec
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public class GCatInitializator implements ApplicationManager {
* Furthermore create/connect to DB
*/
@Override
public void onInit() {
public synchronized void onInit() {
RequestFilter requestFilter = new RequestFilter();
try {
requestFilter.filter(null);
@ -88,7 +88,7 @@ public class GCatInitializator implements ApplicationManager {
* Furthermore close the connection to DB.
*/
@Override
public void onShutdown(){
public synchronized void onShutdown(){
RequestFilter requestFilter = new RequestFilter();
try {
requestFilter.filter(null);