ServerTask shuts down on client disconnect

Help
pete
2004-02-17
2004-05-06
  • pete
    pete
    2004-02-17

    Why?
    From ConnectionHandler v0.6
    if (inputCommand instanceof DisconnectCommand)
    {
      disconnect = true;
      task.getProject().log("Got shutdown command",
      Project.MSG_WARN);
      task.shutdown();
    }

    Shouldn't it keep running until it receives a ShutdownCommand?  AmI missing something?

     
    • pete
      pete
      2004-02-18

      I changed the line
      if (inputCommand instanceof DisconnectCommand)

      to

      if (inputCommand instanceof ShutdownCommand)

      And it seems to perform properly.

       
    • Matt Inger
      Matt Inger
      2004-05-06

      This was fixed in CVS.  I will be creating a new release soon.