Don't let invoker units be posted after the invoker has been shutdown.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2290 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2008-04-04 17:29:39 +00:00
parent 72c63304f8
commit 9bf52de99f
@@ -136,6 +136,9 @@ public class Invoker extends LoopingThread
*/
public void postUnit (Unit unit)
{
if (!isRunning()) {
throw new IllegalStateException("Invoker has been shutdown");
}
// note the time
unit.queueStamp = System.currentTimeMillis();
// and append it to the queue