mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-21 12:16:02 +08:00
Refactoring.
This commit is contained in:
@@ -29,7 +29,7 @@ namespace MQTTnet.Server
|
|||||||
private MqttApplicationMessage _willMessage;
|
private MqttApplicationMessage _willMessage;
|
||||||
private bool _wasCleanDisconnect;
|
private bool _wasCleanDisconnect;
|
||||||
private IMqttChannelAdapter _adapter;
|
private IMqttChannelAdapter _adapter;
|
||||||
private Task<bool> _workerTask;
|
private Task _workerTask;
|
||||||
private IDisposable _cleanupHandle;
|
private IDisposable _cleanupHandle;
|
||||||
|
|
||||||
public MqttClientSession(
|
public MqttClientSession(
|
||||||
@@ -89,6 +89,7 @@ namespace MQTTnet.Server
|
|||||||
//woraround for https://github.com/dotnet/corefx/issues/24430
|
//woraround for https://github.com/dotnet/corefx/issues/24430
|
||||||
_cleanupHandle = _cancellationTokenSource.Token.Register(() => Cleanup());
|
_cleanupHandle = _cancellationTokenSource.Token.Register(() => Cleanup());
|
||||||
//endworkaround
|
//endworkaround
|
||||||
|
|
||||||
_wasCleanDisconnect = false;
|
_wasCleanDisconnect = false;
|
||||||
_willMessage = connectPacket.WillMessage;
|
_willMessage = connectPacket.WillMessage;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user