mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-28 17:22:37 +08:00
Fix bugs
This commit is contained in:
@@ -20,6 +20,11 @@ namespace MQTTnet.Core.Server
|
|||||||
|
|
||||||
public async Task LoadMessagesAsync()
|
public async Task LoadMessagesAsync()
|
||||||
{
|
{
|
||||||
|
if (_options.Storage == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var retainedMessages = await _options.Storage.LoadRetainedMessagesAsync();
|
var retainedMessages = await _options.Storage.LoadRetainedMessagesAsync();
|
||||||
|
|||||||
Reference in New Issue
Block a user