Merge pull request #3 from efontana/rel1.x
Reset WindowsEventListener on Exception
This commit is contained in:
@@ -91,12 +91,14 @@ namespace TimberWinR.Inputs
|
||||
}
|
||||
// Close the recordset
|
||||
rs.close();
|
||||
firstQuery = false;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogManager.GetCurrentClassLogger().Error(ex);
|
||||
LogManager.GetCurrentClassLogger().Error("WindowsEventListener", ex);
|
||||
firstQuery = true;
|
||||
oLogQuery = new LogQuery();
|
||||
}
|
||||
firstQuery = false;
|
||||
System.Threading.Thread.Sleep(_pollingIntervalInSeconds * 1000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user