Minor changes to previous fix. Log runnable, event or message that is being posted to the inactive queue. Remove instanceof check since the invoker will always be of the expected type

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5495 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Jamie Doornbos
2008-11-03 23:14:47 +00:00
parent e843684637
commit 7a3f264d43
3 changed files with 8 additions and 11 deletions
@@ -161,14 +161,8 @@ public class PresentsServer
// Make the client manager shut down before the invoker and dobj threads. This will help
// application code to avoid long chains of shutdown constraints (e.g. msoy bureau manager).
// TODO: is this check needed?
if (_invoker instanceof PresentsInvoker) {
_shutmgr.addConstraint(
_clmgr, ShutdownManager.Constraint.RUNS_BEFORE, (PresentsInvoker)_invoker);
} else {
log.warning("Invoker is not a PresentsInvoker", "invoker", _invoker);
}
_shutmgr.addConstraint(
_clmgr, ShutdownManager.Constraint.RUNS_BEFORE, (PresentsInvoker)_invoker);
}
/**