aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/GridServerBase.cs
diff options
context:
space:
mode:
authorMW2009-02-26 15:21:06 +0000
committerMW2009-02-26 15:21:06 +0000
commitde82bf9eb53cdd3be94b5a730b81c70d1e244b70 (patch)
tree82c00d621abfb853d7571e3889792704fa6424bf /OpenSim/Grid/GridServer/GridServerBase.cs
parentAdd check in SceneManager to stop opensim.exe crashing if no regions/scenes w... (diff)
downloadopensim-SC-de82bf9eb53cdd3be94b5a730b81c70d1e244b70.zip
opensim-SC-de82bf9eb53cdd3be94b5a730b81c70d1e244b70.tar.gz
opensim-SC-de82bf9eb53cdd3be94b5a730b81c70d1e244b70.tar.bz2
opensim-SC-de82bf9eb53cdd3be94b5a730b81c70d1e244b70.tar.xz
Added a PostInitialise method to IApplicationPlugin, this allows us to do work in there knowing that all other ApplicationPlugins have been initialised by that time.
Moved the loadRegions code in LoadRegionsPlugin to the PostInitialise method.
Diffstat (limited to 'OpenSim/Grid/GridServer/GridServerBase.cs')
-rw-r--r--OpenSim/Grid/GridServer/GridServerBase.cs33
1 files changed, 0 insertions, 33 deletions
diff --git a/OpenSim/Grid/GridServer/GridServerBase.cs b/OpenSim/Grid/GridServer/GridServerBase.cs
index 1bc3955..1ee97f4 100644
--- a/OpenSim/Grid/GridServer/GridServerBase.cs
+++ b/OpenSim/Grid/GridServer/GridServerBase.cs
@@ -176,39 +176,6 @@ namespace OpenSim.Grid.GridServer
176 176
177 public void CheckSims(object sender, ElapsedEventArgs e) 177 public void CheckSims(object sender, ElapsedEventArgs e)
178 { 178 {
179 /*
180 foreach (SimProfileBase sim in m_simProfileManager.SimProfiles.Values)
181 {
182 string SimResponse = String.Empty;
183 try
184 {
185 WebRequest CheckSim = WebRequest.Create("http://" + sim.sim_ip + ":" + sim.sim_port.ToString() + "/checkstatus/");
186 CheckSim.Method = "GET";
187 CheckSim.ContentType = "text/plaintext";
188 CheckSim.ContentLength = 0;
189
190 StreamWriter stOut = new StreamWriter(CheckSim.GetRequestStream(), System.Text.Encoding.ASCII);
191 stOut.Write(String.Empty);
192 stOut.Close();
193
194 StreamReader stIn = new StreamReader(CheckSim.GetResponse().GetResponseStream());
195 SimResponse = stIn.ReadToEnd();
196 stIn.Close();
197 }
198 catch
199 {
200 }
201
202 if (SimResponse == "OK")
203 {
204 m_simProfileManager.SimProfiles[sim.UUID].online = true;
205 }
206 else
207 {
208 m_simProfileManager.SimProfiles[sim.UUID].online = false;
209 }
210 }
211 */
212 } 179 }
213 180
214 public override void ShutdownSpecific() 181 public override void ShutdownSpecific()