mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
More exception checks and crash hints
If no scriptengine is specified then don't try to load any.
This commit is contained in:
@@ -421,8 +421,8 @@ namespace OpenSim.Framework.Data.MySQL
|
||||
public void StoreLandObject(Land parcel, LLUUID regionUUID)
|
||||
{
|
||||
// Does the new locking fix it?
|
||||
m_log.Info("[DATASTORE]: Tedds temp fix: Waiting 3 seconds for stuff to catch up. (Someone please fix! :))");
|
||||
System.Threading.Thread.Sleep(2500 + rnd.Next(300, 900));
|
||||
m_log.Info("[DATASTORE]: Tedds temp fix: Waiting 3 seconds to avoid others writing to table while we hold a dataset of it. (Someone please fix! :))");
|
||||
System.Threading.Thread.Sleep(2500 + rnd.Next(0, 1000));
|
||||
|
||||
lock (m_dataSet)
|
||||
{
|
||||
|
||||
@@ -559,6 +559,7 @@ namespace OpenSim.Framework.Servers
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.Warn("[HTTPD]: Error - " + e.Message);
|
||||
m_log.Warn("Tip: Do you have permission to listen on port " + m_port + "?");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,8 +50,12 @@ namespace OpenSim.Framework.Statistics
|
||||
|
||||
public void AddTexture(AssetBase image)
|
||||
{
|
||||
texturesInCache++;
|
||||
textureCacheMemoryUsage += image.Data.Length;
|
||||
// Tedd: I added null check to avoid exception. Don't know if texturesInCache should ++ anyway?
|
||||
if (image.Data != null)
|
||||
{
|
||||
texturesInCache++;
|
||||
textureCacheMemoryUsage += image.Data.Length;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user