Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Commit

Permalink
+ fix possible server crash
Browse files Browse the repository at this point in the history
  • Loading branch information
andreakarasho committed Oct 1, 2018
1 parent 0ddf167 commit 310d020
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Expand Up @@ -8,7 +8,7 @@
<Copyright>EnhancedMapServer @2018</Copyright>
<AssemblyName>EnhancedMapServer</AssemblyName>
<AssemblyVersion>1.0.0.1</AssemblyVersion>
<Version>1.0.3</Version>
<Version>1.0.4</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
Expand Up @@ -330,8 +330,13 @@ private void Dispose(bool flush)
catch
{
}

_socket.Close();
try
{
_socket.Close();
}
catch
{
}

if (_recvBuffer != null)
{
Expand All @@ -347,9 +352,6 @@ private void Dispose(bool flush)
_sendQueue.Clear();
}

_recvEventArgs.Completed -= RecvCompleted;
_sendEventArgs.Completed -= SendCompleted;

_recvEventArgs = null;
_sendEventArgs = null;

Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Expand Up @@ -35,5 +35,5 @@
// usando l'asterisco '*' come illustrato di seguito:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("0.2.1.11")]
[assembly: AssemblyFileVersion("0.2.1.11")]
[assembly: AssemblyVersion("0.2.1.12")]
[assembly: AssemblyFileVersion("0.2.1.12")]

0 comments on commit 310d020

Please sign in to comment.