Fix NREs harder.

bulletsim
Sean McNamara 2011-04-11 13:20:46 -04:00
parent 4ad05fb01d
commit 95a6ee0a37
1 changed files with 23 additions and 16 deletions

View File

@ -225,6 +225,10 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
if (m_Enabled) { if (m_Enabled) {
m_log.Info ("[AUTO BACKUP]: AutoBackupModule enabled"); m_log.Info ("[AUTO BACKUP]: AutoBackupModule enabled");
} }
else {
m_log.Info ("[AUTO BACKUP]: AutoBackupModule disabled");
return;
}
} }
Timer defTimer = new Timer(720 * 60000); Timer defTimer = new Timer(720 * 60000);
@ -360,24 +364,27 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
} }
//Add the current region to the list of regions tied to this timer. //Add the current region to the list of regions tied to this timer.
if(state != null) if(scene != null)
{ {
if (timerMap.ContainsKey (state.GetTimer ())) { if(state != null)
timerMap[state.GetTimer ()].Add (scene); {
} else { if (timerMap.ContainsKey (state.GetTimer ())) {
List<IScene> scns = new List<IScene> (1); timerMap[state.GetTimer ()].Add (scene);
scns.Add (scene); } else {
timerMap.Add (state.GetTimer (), scns); List<IScene> scns = new List<IScene> (1);
scns.Add (scene);
timerMap.Add (state.GetTimer (), scns);
}
} }
} else
else {
{ if(timerMap.ContainsKey(defaultState.GetTimer())) {
if(timerMap.ContainsKey(defaultState.GetTimer())) { timerMap[defaultState.GetTimer()].Add(scene);
timerMap[defaultState.GetTimer()].Add(scene); } else {
} else { List<IScene> scns = new List<IScene> (1);
List<IScene> scns = new List<IScene> (1); scns.Add(scene);
scns.Add(scene); timerMap.Add(defaultState.GetTimer(), scns);
timerMap.Add(defaultState.GetTimer(), scns); }
} }
} }