From ed197c632baaf03b81121c3aaca65abd429987d2 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 24 Oct 2018 11:19:23 -0400 Subject: [PATCH 1/2] Add mising call to postWriteHandler --- .../Components/StaticFiles/Configuration.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs b/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs index bb19579a21..5587dc90c3 100644 --- a/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs +++ b/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs @@ -366,6 +366,7 @@ namespace Tgstation.Server.Host.Components.StaticFiles var success = synchronousIOManager.WriteFileChecked(path, data, ref fileHash, cancellationToken); if (!success) return; + postWriteHandler.HandleWrite(path); result = new ConfigurationFile { Content = data, From 67287458d3b907bf04f3e51d40129b98a4cce309 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 24 Oct 2018 12:13:56 -0400 Subject: [PATCH 2/2] Don't post write on deletes --- .../Components/StaticFiles/Configuration.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs b/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs index 5587dc90c3..f7a6436e22 100644 --- a/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs +++ b/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs @@ -366,7 +366,8 @@ namespace Tgstation.Server.Host.Components.StaticFiles var success = synchronousIOManager.WriteFileChecked(path, data, ref fileHash, cancellationToken); if (!success) return; - postWriteHandler.HandleWrite(path); + if (data != null) + postWriteHandler.HandleWrite(path); result = new ConfigurationFile { Content = data,