Added timeout so GUI is not blocked if QueryManger thread does not terminate in a timely fashion

This commit is contained in:
Dale Schultz 2013-04-07 23:01:14 -04:00
parent 0ca284ff06
commit df46735759
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
/*
* RomRaider Open-Source Tuning, Logging and Reflashing
* Copyright (C) 2006-2012 RomRaider.com
* Copyright (C) 2006-2013 RomRaider.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -86,7 +86,7 @@ public final class LoggerControllerImpl implements LoggerController {
"%s - Waiting for QueryManager %s to terminate",
this.getClass().getSimpleName(),
queryManager.getThread().getName()));
queryManager.getThread().join();
queryManager.getThread().join(5000);
}
catch (InterruptedException e) {
e.printStackTrace();