Skip to content

Commit

Permalink
keep pm watch alive
Browse files Browse the repository at this point in the history
  • Loading branch information
erfg12 committed Aug 11, 2024
1 parent 220ae6e commit 9d81a3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aol_4/Forms/instant_message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public partial class instant_message : Win95Theme
#region public_variables
string privateLog = "";
string user = "";
FileSystemWatcher watch = null;
#endregion

#region winform_functions
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9d81a3f

Please sign in to comment.