Skip to content
Open
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
13 changes: 10 additions & 3 deletions IotWeb NET45/SocketServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,17 @@ public void Start()
catch (Exception)
{
// Quietly consume the exception
}
// Finally, we can close the socket
try
{
client.Shutdown(SocketShutdown.Both);
client.Close();
}
catch(Exception)
{
// Quietly eat the exception
}
// Finally, we can close the socket
client.Shutdown(SocketShutdown.Both);
client.Close();
});
}
}
Expand Down