mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-14 19:23:46 +02:00
SMBServer: Bugfix: Connection resources were not released after send error in some cases
This commit is contained in:
parent
3674fcd58a
commit
a390bb1a0c
1 changed files with 2 additions and 0 deletions
|
@ -358,11 +358,13 @@ namespace SMBLibrary.Server
|
||||||
catch (SocketException ex)
|
catch (SocketException ex)
|
||||||
{
|
{
|
||||||
state.LogToServer(Severity.Debug, "Failed to send packet. SocketException: {0}", ex.Message);
|
state.LogToServer(Severity.Debug, "Failed to send packet. SocketException: {0}", ex.Message);
|
||||||
|
m_connectionManager.ReleaseConnection(state);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
catch (ObjectDisposedException)
|
catch (ObjectDisposedException)
|
||||||
{
|
{
|
||||||
state.LogToServer(Severity.Debug, "Failed to send packet. ObjectDisposedException.");
|
state.LogToServer(Severity.Debug, "Failed to send packet. ObjectDisposedException.");
|
||||||
|
m_connectionManager.ReleaseConnection(state);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue