Moved wait to bottom of loop. cleanup some old comments.

This commit is contained in:
Eric Fontana
2014-12-18 07:51:14 -05:00
parent 8ba2db7cf4
commit 11762b6136
2 changed files with 3 additions and 8 deletions

View File

@@ -112,7 +112,6 @@ namespace TimberWinR.Inputs
{
try
{
syncHandle.Wait(TimeSpan.FromSeconds(_pollingIntervalInSeconds), _cancelToken);
var qfiles = string.Format("SELECT Distinct [LogFilename] FROM {0}", fileToWatch);
var rsfiles = oLogQuery.Execute(qfiles, iFmt);
for (; !rsfiles.atEnd(); rsfiles.moveNext())
@@ -214,7 +213,7 @@ namespace TimberWinR.Inputs
// Close the recordset
rs.close();
rs = null;
GC.Collect();
GC.Collect();
}
}
catch(FileNotFoundException fnfex)
@@ -233,6 +232,7 @@ namespace TimberWinR.Inputs
{
oLogQuery = null;
}
syncHandle.Wait(TimeSpan.FromSeconds(_pollingIntervalInSeconds), _cancelToken);
}
}
Finished();

View File

@@ -870,12 +870,7 @@ namespace TimberWinR.Parser
var list = new List<LogstashFilter>();
foreach (var filter in Filters)
{
//if (filter is Json[])
//{
// Json[] ja = filter as Json[];
// list.AddRange(ja);
//}
{
foreach (var prop in filter.GetType().GetProperties())
{
object typedFilter = filter.GetType().GetProperty(prop.Name).GetValue(filter, null);