mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 19:58:57 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user