NativeDataChannel.Create(webRtc.Handle, label, bundle_, out _handle).
ThrowIfFailed("Failed to create webrtc data channel");
- Debug.Assert(_handle != null);
+ Debug.Assert(_handle != IntPtr.Zero);
Label = label;
}
return;
}
- if (_handle != null)
+ if (_handle != IntPtr.Zero)
{
NativeDataChannel.Destroy(_handle);
_disposed = true;