Properly configure our optional RunQueue.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2531 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2009-02-13 18:27:12 +00:00
parent 4584b053e2
commit 2dde3d2417
@@ -140,7 +140,7 @@ public class UserManager
}
// register a cron job to prune the session table every hour
_pruner = new Interval(pruneQueue) {
_pruner = new Interval() {
@Override public void expired () {
try {
_repository.pruneSessions();
@@ -149,6 +149,9 @@ public class UserManager
}
}
};
if (pruneQueue != null) {
_pruner.setRunQueue(pruneQueue);
}
_pruner.schedule(SESSION_PRUNE_INTERVAL, true);
}