Commit 19c836d8 authored by Andreas Müller's avatar Andreas Müller

Small fix to keep everything quiet - also aborting events.

Forgotten tasks are forgotten... Exceptions do not concern and should be quiet.
parent 8d008e4b
Pipeline #29 passed with stage
in 3 minutes and 2 seconds
......@@ -303,7 +303,12 @@ namespace AMWD.Modbus.Common.Util
/// <param name="task">The task to forget.</param>
public async static void Forget(this Task task)
{
await task;
try
{
await task;
}
catch
{ /* Task forgotten, so keep everything quiet. */ }
}
#endregion Task handling
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment