aboutsummaryrefslogtreecommitdiff
path: root/lib/Plugins.Essentials/src/EventProcessor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Plugins.Essentials/src/EventProcessor.cs')
-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);