Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions source/nanoFramework.System.Net/Sockets/Socket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Socket : IDisposable
* The m_Handle field MUST be the first field in the Socket class; it is expected by
* the SPOT.NET.SocketNative class.
*/
// [FieldNoReflection]
// [FieldNoReflection]
internal int m_Handle = -1;

[Diagnostics.DebuggerBrowsable(Diagnostics.DebuggerBrowsableState.Never)]
Expand Down Expand Up @@ -116,8 +116,6 @@ private EndPoint GetEndPoint(bool fLocal)
throw new ObjectDisposedException();
}

EndPoint ep = null;

if (m_localEndPoint == null)
{
m_localEndPoint = new IPEndPoint(IPAddress.Any, 0);
Expand All @@ -139,7 +137,7 @@ private EndPoint GetEndPoint(bool fLocal)
m_localEndPoint = endPoint;
}

return ep;
return endPoint;
}

/// <summary>
Expand Down