Merge pull request #3 from efontana/rel1.x

Reset WindowsEventListener on Exception
This commit is contained in:
Eric Fontana
2014-08-19 07:32:01 -04:00

View File

@@ -91,12 +91,14 @@ namespace TimberWinR.Inputs
}
// Close the recordset
rs.close();
firstQuery = false;
}
catch (Exception ex)
{
LogManager.GetCurrentClassLogger().Error(ex);
}
firstQuery = false;
LogManager.GetCurrentClassLogger().Error("WindowsEventListener", ex);
firstQuery = true;
oLogQuery = new LogQuery();
}
System.Threading.Thread.Sleep(_pollingIntervalInSeconds * 1000);
}