diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs index db3f900..5365b49 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs | |||
@@ -94,7 +94,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage | |||
94 | if (config == null) | 94 | if (config == null) |
95 | return; | 95 | return; |
96 | 96 | ||
97 | int refreshminutes = Convert.ToInt32(config.GetString("RefreshTime", "-1")); | 97 | int refreshminutes = Convert.ToInt32(config.GetString("RefreshTime", "60")); |
98 | if (refreshminutes < 0) | 98 | if (refreshminutes < 0) |
99 | { | 99 | { |
100 | m_log.WarnFormat("[MAP IMAGE SERVICE MODULE]: Negative refresh time given in config. Module disabled."); | 100 | m_log.WarnFormat("[MAP IMAGE SERVICE MODULE]: Negative refresh time given in config. Module disabled."); |
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs index b6d96ac..adcad03 100644 --- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | |||
@@ -1426,7 +1426,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
1426 | using (Bitmap mapbmp = m_mapImageGenerator.CreateMapTile()) | 1426 | using (Bitmap mapbmp = m_mapImageGenerator.CreateMapTile()) |
1427 | { | 1427 | { |
1428 | GenerateMaptile(mapbmp); | 1428 | GenerateMaptile(mapbmp); |
1429 | m_mapImageServiceModule.UploadMapTile(m_scene, mapbmp); | 1429 | if(m_mapImageServiceModule != null) |
1430 | m_mapImageServiceModule.UploadMapTile(m_scene, mapbmp); | ||
1430 | } | 1431 | } |
1431 | } | 1432 | } |
1432 | 1433 | ||
@@ -1562,7 +1563,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
1562 | GenerateMaptile(mapbmp); | 1563 | GenerateMaptile(mapbmp); |
1563 | 1564 | ||
1564 | // v2/3 (MapImageServiceModule) | 1565 | // v2/3 (MapImageServiceModule) |
1565 | m_mapImageServiceModule.UploadMapTile(m_scene, mapbmp); | 1566 | if(m_mapImageServiceModule !=null) |
1567 | m_mapImageServiceModule.UploadMapTile(m_scene, mapbmp); | ||
1566 | } | 1568 | } |
1567 | } | 1569 | } |
1568 | 1570 | ||