Reset WindowsEventListener on Exception

This commit is contained in:
Eric Fontana
2014-08-19 07:31:05 -04:00
parent de8e811c25
commit 8d4ae9d7f9

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);
}