Catch all exceptions in stopAll() application loop to make sure all apps are stopped.
This commit is contained in:
parent
a5feff74f6
commit
c583133234
1 changed files with 6 additions and 2 deletions
|
@ -178,9 +178,13 @@ public class ApplicationManager implements XmlRpcHandler {
|
|||
*/
|
||||
public void stopAll() {
|
||||
for (Enumeration en = descriptors.elements(); en.hasMoreElements();) {
|
||||
AppDescriptor appDesc = (AppDescriptor) en.nextElement();
|
||||
try {
|
||||
AppDescriptor appDesc = (AppDescriptor) en.nextElement();
|
||||
|
||||
appDesc.stop();
|
||||
appDesc.stop();
|
||||
} catch (Exception x) {
|
||||
// ignore exception in application shutdown
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue