From 805deb5a9ba51307393dc5e11b100c86ee7c1b79 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 31 Aug 2008 10:42:35 +0000 Subject: Attempt to fix an issue I havebeen seeing, where asset server failure results in a memory leak which will make the region crash and burn after a while. --- OpenSim/Framework/Communications/Cache/GridAssetClient.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Framework/Communications/Cache') diff --git a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs index 9cccf66..1c947dc 100644 --- a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs +++ b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs @@ -63,6 +63,9 @@ namespace OpenSim.Framework.Communications.Cache Stream s = rc.Request(); + if (s == null) + return null; + if (s.Length > 0) { XmlSerializer xs = new XmlSerializer(typeof (AssetBase)); -- cgit v1.1