Browse Source

Merge remote-tracking branch 'origin/develop' into develop

release/3.x.x
Christian Kratky 5 years ago
parent
commit
f3ea7008e5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Source/MQTTnet/Internal/AsyncLock.cs

+ 1
- 1
Source/MQTTnet/Internal/AsyncLock.cs View File

@@ -23,7 +23,7 @@ namespace MQTTnet.Internal
public Task<IDisposable> WaitAsync(CancellationToken cancellationToken) public Task<IDisposable> WaitAsync(CancellationToken cancellationToken)
{ {
var task = _semaphore.WaitAsync(cancellationToken); var task = _semaphore.WaitAsync(cancellationToken);
if (task.IsCompleted)
if (task.Status == TaskStatus.RanToCompletion)
{ {
return _releaser; return _releaser;
} }


Loading…
Cancel
Save