mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-15 06:01:04 +00:00
Update FileEventMonitor.cs
This commit is contained in:
parent
5af61c3e76
commit
ee454527af
|
@ -101,10 +101,17 @@ namespace WelsonJS.Service
|
|||
public void Stop()
|
||||
{
|
||||
if (eventLogWatcher != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
eventLogWatcher.Dispose();
|
||||
eventLogWatcher = null;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
eventLogWatcher = null;
|
||||
}
|
||||
}
|
||||
|
||||
Dispose();
|
||||
}
|
||||
|
@ -173,9 +180,16 @@ namespace WelsonJS.Service
|
|||
{
|
||||
if (rules != null)
|
||||
{
|
||||
rules.Dispose();
|
||||
try
|
||||
{
|
||||
//rules.Dispose();
|
||||
rules = null;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
rules = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user