Invoke onLogout() function with the session id as parameter.

This commit is contained in:
hns 2003-01-28 12:48:58 +00:00
parent 585db17d22
commit 2d05ec273e

View file

@ -1112,7 +1112,8 @@ public final class Application implements IPathElement, Runnable {
NodeHandle userhandle = session.userHandle; NodeHandle userhandle = session.userHandle;
if (userhandle != null) { if (userhandle != null) {
try { try {
eval.invokeFunction (userhandle, "onLogout", new Object[0]); Object[] param = { session.getSessionID() };
eval.invokeFunction (userhandle, "onLogout", param);
} catch (Exception ignore) {} } catch (Exception ignore) {}
} }
destroySession(session); destroySession(session);
@ -1141,7 +1142,7 @@ public final class Application implements IPathElement, Runnable {
} }
// sleep until we have work to do // sleep until we have work to do
try { try {
worker.sleep (Math.min (cleanupSleep, scheduleSleep)); worker.sleep (Math.min (cleanupSleep, scheduleSleep));
} catch (InterruptedException x) { } catch (InterruptedException x) {
logEvent ("Scheduler for "+name+" interrupted"); logEvent ("Scheduler for "+name+" interrupted");