mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* Move shutdown processing to base OpenSimServer, overriding the method where appropriate
* This also means that the command quit (as well as shutdown) will now close down grid servers (instead of only being in place for the region server)
This commit is contained in:
@@ -140,29 +140,13 @@ namespace OpenSim.Grid.MessagingServer
|
||||
// m_lastCreatedUser = userID;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void RunCmd(string cmd, string[] cmdparams)
|
||||
protected override void Shutdown()
|
||||
{
|
||||
base.RunCmd(cmd, cmdparams);
|
||||
msgsvc.deregisterWithUserServer();
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
case "help":
|
||||
m_console.Notice("shutdown - shutdown the message server (USE CAUTION!)");
|
||||
break;
|
||||
|
||||
case "shutdown":
|
||||
msgsvc.deregisterWithUserServer();
|
||||
m_console.Close();
|
||||
Environment.Exit(0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Show(string ShowWhat)
|
||||
{
|
||||
base.Show(ShowWhat);
|
||||
base.Shutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user