Move logoff handling into ClientController.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@418 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-09 19:23:26 +00:00
parent ce5bcd95d5
commit 8eb3dba6dc
2 changed files with 11 additions and 19 deletions
@@ -1,5 +1,5 @@
//
// $Id: ClientController.java,v 1.5 2001/10/09 18:20:08 mdb Exp $
// $Id: ClientController.java,v 1.6 2001/10/09 19:23:26 mdb Exp $
package com.threerings.micasa.client;
@@ -55,7 +55,15 @@ public class ClientController
// documentation inherited
public boolean handleAction (ActionEvent action)
{
Log.info("Got action: " + action);
String cmd = action.getActionCommand();
if (cmd.equals("logoff")) {
// request that we logoff
_ctx.getClient().logoff(true);
return true;
}
Log.info("Unhandled action: " + action);
return false;
}