mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 11:45:43 +08:00
Fixed broken UWP build (#1655)
Added compiler declaritive to check for WINDOWS_UWP on IsAssignableFrom call.
This commit is contained in:
@@ -37,7 +37,7 @@ namespace MQTTnet.Internal
|
|||||||
|
|
||||||
_isDisposed = true;
|
_isDisposed = true;
|
||||||
|
|
||||||
#if !NETSTANDARD1_3
|
#if !NETSTANDARD1_3 && !WINDOWS_UWP
|
||||||
if (typeof(IDisposable).IsAssignableFrom(typeof(TItem)))
|
if (typeof(IDisposable).IsAssignableFrom(typeof(TItem)))
|
||||||
{
|
{
|
||||||
while (_queue.TryDequeue(out TItem item))
|
while (_queue.TryDequeue(out TItem item))
|
||||||
|
|||||||
Reference in New Issue
Block a user