Skip to content

Commit 84e3c90

Browse files
committed
Bug fix in LogFile.ReportError()
Moved statement into finally block.
1 parent 4e4f7eb commit 84e3c90

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

LogFile.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,20 +202,23 @@ private void ReportError(Exception e)
202202
{
203203
return;
204204
}
205-
205+
206206
// ReSharper disable once EmptyGeneralCatchClause
207207
try
208208
{
209209
HostIOInterceptor.Instance.Paused = true;
210210
this.ErrorCallback.Invoke(this, e);
211-
HostIOInterceptor.Instance.Paused = false;
212211
}
213212
catch { }
213+
finally
214+
{
215+
HostIOInterceptor.Instance.Paused = false;
216+
}
214217
}
215218

216219
#endregion
217220
}
218221
}
219222

220223
// ReSharper restore MemberCanBePrivate.Global
221-
// ReSharper restore UnusedMember.Global
224+
// ReSharper restore UnusedMember.Global

0 commit comments

Comments
 (0)