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