Browse Source

Fix breaking changes.

release/3.x.x
Christian Kratky 5 years ago
parent
commit
cd76f434e3
2 changed files with 15 additions and 1 deletions
  1. +14
    -0
      Source/MQTTnet.Extensions.ManagedClient/ManagedProcessFailedEventArgs.cs
  2. +1
    -1
      Source/MQTTnet/Server/MqttServer.cs

+ 14
- 0
Source/MQTTnet.Extensions.ManagedClient/ManagedProcessFailedEventArgs.cs View File

@@ -0,0 +1,14 @@
using System;

namespace MQTTnet.Extensions.ManagedClient
{
public class ManagedProcessFailedEventArgs : EventArgs
{
public ManagedProcessFailedEventArgs(Exception exception)
{
Exception = exception ?? throw new ArgumentNullException(nameof(exception));
}

public Exception Exception { get; }
}
}

+ 1
- 1
Source/MQTTnet/Server/MqttServer.cs View File

@@ -146,7 +146,7 @@ namespace MQTTnet.Server
return;
}
_clientSessionsManager.Stop();
await _clientSessionsManager.StopAsync().ConfigureAwait(false);
_cancellationTokenSource.Cancel(false);



Loading…
Cancel
Save