Fix references. Fix certificate handing issue

This commit is contained in:
Christian Kratky
2017-11-11 13:17:54 +01:00
parent 9692ae5617
commit 3625363fcf
5 changed files with 18 additions and 10 deletions
+5 -3
View File
@@ -60,12 +60,14 @@ namespace MQTTnet.Core.Server
try
{
var cancellationTokenSource = new CancellationTokenSource();
_willMessage = willMessage;
_adapter = adapter;
_cancellationTokenSource = new CancellationTokenSource();
_cancellationTokenSource = cancellationTokenSource;
_pendingMessagesQueue.Start(adapter, _cancellationTokenSource.Token);
await ReceivePacketsAsync(adapter, _cancellationTokenSource.Token).ConfigureAwait(false);
_pendingMessagesQueue.Start(adapter, cancellationTokenSource.Token);
await ReceivePacketsAsync(adapter, cancellationTokenSource.Token).ConfigureAwait(false);
}
catch (OperationCanceledException)
{