diff --git a/TimberWinR/Inputs/IISW3CInputListener.cs b/TimberWinR/Inputs/IISW3CInputListener.cs index cbda47d..31c5ca2 100644 --- a/TimberWinR/Inputs/IISW3CInputListener.cs +++ b/TimberWinR/Inputs/IISW3CInputListener.cs @@ -135,8 +135,6 @@ namespace TimberWinR.Inputs rs.close(); GC.Collect(); } - if (!Stop) - syncHandle.Wait(TimeSpan.FromSeconds(_pollingIntervalInSeconds), CancelToken); } catch (OperationCanceledException) { @@ -145,13 +143,18 @@ namespace TimberWinR.Inputs catch (Exception ex) { LogManager.GetCurrentClassLogger().Error(ex); + } + finally + { try { if (!Stop) syncHandle.Wait(TimeSpan.FromSeconds(_pollingIntervalInSeconds), CancelToken); } - catch (Exception) { } - } + catch (Exception) + { + } + } } } }