Skip to content

Commit 3a7f459

Browse files
refa (DfuInstallation::OnProgressChanged()): we now emit errors using WriteLineAsync() for the sake of performance
1 parent bd32d08 commit 3a7f459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Laerdal.Dfu/DfuInstallation.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ internal void OnProgressChanged(double progress, double currentSpeedBytesPerSeco
207207
{
208208
try
209209
{
210-
Console.Error.WriteLine($"[DI.OPC.010] [DfuInstallation.OnProgressChanged()] [BUG] Suppressed internal bug while trying to calculate progress - report this incident!\n\n{ex}");
210+
Console.Error.WriteLineAsync($"[DI.OPC.010] [DfuInstallation.OnProgressChanged()] [BUG] Suppressed internal bug while trying to calculate progress - report this incident!\n\n{ex}");
211211
}
212212
catch
213213
{
@@ -224,7 +224,7 @@ internal void OnProgressChanged(double progress, double currentSpeedBytesPerSeco
224224
{
225225
try
226226
{
227-
Console.Error.WriteLine($"[DI.OPC.020] [DfuInstallation.OnProgressChanged()::ProgressChangedEvent] [USERLAND BUG - SUPPRESSED] Error while raising event ProgressChanged - report this incident!\n\n{ex}");
227+
Console.Error.WriteLineAsync($"[DI.OPC.020] [DfuInstallation.OnProgressChanged()::ProgressChangedEvent] [USERLAND BUG - SUPPRESSED] Error while raising event ProgressChanged - report this incident!\n\n{ex}");
228228
}
229229
catch
230230
{

0 commit comments

Comments
 (0)