- Timestamp:
- Sep 12, 2014, 11:14:11 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/StaticHandler.cs
r154 r189 30 30 byte[] content; 31 31 if (cache) { 32 Monitor.Enter (fileCache); 33 try { 32 lock (fileCache) { 34 33 if (!fileCache.ContainsKey (fn)) { 35 34 if (!File.Exists (datapath + "/" + fn)) { … … 41 40 42 41 content = fileCache [fn]; 43 } finally {44 Monitor.Exit (fileCache);45 42 } 46 43 } else { … … 55 52 resp.ContentLength64 = content.Length; 56 53 resp.OutputStream.Write (content, 0, content.Length); 57 } catch (FileNotFoundException e) {54 } catch (FileNotFoundException) { 58 55 resp.StatusCode = (int)HttpStatusCode.NotFound; 59 56 if (logMissingFiles)
Note:
See TracChangeset
for help on using the changeset viewer.