mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
compilation error fix.
This commit is contained in:
parent
6defeeed1f
commit
e50de69420
2 changed files with 8 additions and 1 deletions
|
@ -202,7 +202,11 @@ public class Session {
|
|||
|
||||
private void runEmbeddedMageServer() {
|
||||
if (embeddedMageServerAction != null) {
|
||||
embeddedMageServerAction.execute();
|
||||
try {
|
||||
embeddedMageServerAction.execute();
|
||||
} catch (MageException e) {
|
||||
logger.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -746,6 +746,8 @@ public class MageServerImpl implements MageServer {
|
|||
} catch (MageException me) {
|
||||
throw new RuntimeException(me);
|
||||
}
|
||||
} else {
|
||||
LogServiceImpl.instance.log(LogKeys.KEY_NOT_VALID_SESSION_INTERNAL, actionName, sessionId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -769,6 +771,7 @@ public class MageServerImpl implements MageServer {
|
|||
return executeWithResult(actionName, sessionId, action);
|
||||
}
|
||||
|
||||
//TODO: also run in threads with future task
|
||||
protected <T> T executeWithResult(String actionName, final String sessionId, final ActionWithResult<T> action) throws MageException {
|
||||
if (SessionManager.getInstance().isValidSession(sessionId)) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue