From 9d81a3f19a2fa2b97150a00760bab391de55c36e Mon Sep 17 00:00:00 2001 From: Jacob Fliss Date: Sun, 11 Aug 2024 12:52:35 -0400 Subject: [PATCH] keep pm watch alive --- aol_4/Forms/instant_message.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aol_4/Forms/instant_message.cs b/aol_4/Forms/instant_message.cs index 9dbe0ab..e0bc104 100644 --- a/aol_4/Forms/instant_message.cs +++ b/aol_4/Forms/instant_message.cs @@ -14,6 +14,7 @@ public partial class instant_message : Win95Theme #region public_variables string privateLog = ""; string user = ""; + FileSystemWatcher watch = null; #endregion #region winform_functions @@ -268,7 +269,7 @@ private void keepReading() { try { - var watch = new FileSystemWatcher(); + watch = new FileSystemWatcher(); watch.Path = Path.GetDirectoryName(privateLog); watch.Filter = Path.GetFileName(privateLog); watch.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite;