Fix #1761: MQTTRetainedMessageManager, return task with NULL result instead of NULL (#1762)

* Return task with NULL result instead of NULL

* move Task.FromResult call out of lock

* Update ReleaseNotes.md

---------

Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com>
This commit is contained in:
logicaloud
2023-06-12 21:52:54 +02:00
committed by GitHub
co-authored by Christian
parent 0790e54794
commit 3b5667c882
3 changed files with 29 additions and 3 deletions
@@ -134,9 +134,9 @@ namespace MQTTnet.Server
{
return Task.FromResult(message);
}
return null;
}
return Task.FromResult<MqttApplicationMessage>(null);
}
public async Task ClearMessages()