aboutsummaryrefslogtreecommitdiff
path: root/lib/Plugins.Essentials/src
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-09-14 15:43:45 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-09-14 15:43:45 -0400
commit322bbe00f77772ba6b0e25759de95dd517b6014c (patch)
tree12abc5835dc6df87c3aaf7d39dfd541fa26b6529 /lib/Plugins.Essentials/src
parentabcd0e0d6cb5532c8a19a8cd8c7dd83e7f143442 (diff)
build: Testing updates and easier dev-testing
Diffstat (limited to 'lib/Plugins.Essentials/src')
-rw-r--r--lib/Plugins.Essentials/src/EventProcessor.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Plugins.Essentials/src/EventProcessor.cs b/lib/Plugins.Essentials/src/EventProcessor.cs
index 908ad07..c3082a1 100644
--- a/lib/Plugins.Essentials/src/EventProcessor.cs
+++ b/lib/Plugins.Essentials/src/EventProcessor.cs
@@ -416,8 +416,12 @@ namespace VNLib.Plugins.Essentials
//set last modified time as the files last write time
entity.Server.LastModified(fileLastModified);
+
//Open the file handle directly, reading will always be sequentially read and async
+
+#pragma warning disable CA2000 // Dispose objects before losing scope
DirectFileStream dfs = DirectFileStream.Open(filename);
+#pragma warning restore CA2000 // Dispose objects before losing scope
long endOffset = checked((long)entity.Server.Range.End);
long startOffset = checked((long)entity.Server.Range.Start);