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