diff options
Diffstat (limited to 'OpenSim/Grid/UserServer')
-rw-r--r-- | OpenSim/Grid/UserServer/Main.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 8e6559c..d60c205 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs | |||
@@ -219,19 +219,12 @@ namespace OpenSim.Grid.UserServer | |||
219 | { | 219 | { |
220 | case "help": | 220 | case "help": |
221 | m_console.Notice("create user - create a new user"); | 221 | m_console.Notice("create user - create a new user"); |
222 | m_console.Notice("stats - statistical information for this server"); | 222 | m_console.Notice("stats - statistical information for this server"); |
223 | m_console.Notice("shutdown - shutdown the grid (USE CAUTION!)"); | ||
224 | break; | 223 | break; |
225 | 224 | ||
226 | case "create": | 225 | case "create": |
227 | do_create(cmdparams[0]); | 226 | do_create(cmdparams[0]); |
228 | break; | 227 | break; |
229 | |||
230 | case "shutdown": | ||
231 | m_loginService.OnUserLoggedInAtLocation -= NotifyMessageServersUserLoggedInToLocation; | ||
232 | m_console.Close(); | ||
233 | Environment.Exit(0); | ||
234 | break; | ||
235 | 228 | ||
236 | case "stats": | 229 | case "stats": |
237 | m_console.Notice(StatsManager.UserStats.Report()); | 230 | m_console.Notice(StatsManager.UserStats.Report()); |
@@ -251,6 +244,13 @@ namespace OpenSim.Grid.UserServer | |||
251 | } | 244 | } |
252 | } | 245 | } |
253 | 246 | ||
247 | protected override void Shutdown() | ||
248 | { | ||
249 | m_loginService.OnUserLoggedInAtLocation -= NotifyMessageServersUserLoggedInToLocation; | ||
250 | |||
251 | base.Shutdown(); | ||
252 | } | ||
253 | |||
254 | public void TestResponse(List<InventoryFolderBase> resp) | 254 | public void TestResponse(List<InventoryFolderBase> resp) |
255 | { | 255 | { |
256 | m_console.Notice("response got"); | 256 | m_console.Notice("response got"); |