Optimized persisting of retained messages to avoid useless writes to the filesystem

This commit is contained in:
Christian Kratky
2017-11-08 14:30:13 +01:00
parent 7e48746944
commit d2e481719c
8 changed files with 155 additions and 28 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ namespace MQTTnet.Core.Tests
};
//make shure the retainedMessageManagerreceived the package
while (!retainMessagemanager.GetMessages(subscribe).Any())
while (!(await retainMessagemanager.GetSubscribedMessagesAsync(subscribe)).Any())
{
await Task.Delay(TimeSpan.FromMilliseconds(10));
}