mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-04 15:01:28 +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)
|
||||
{
|
||||
state.LogToServer(Severity.Debug, "Failed to send packet. SocketException: {0}", ex.Message);
|
||||
m_connectionManager.ReleaseConnection(state);
|
||||
return;
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
{
|
||||
state.LogToServer(Severity.Debug, "Failed to send packet. ObjectDisposedException.");
|
||||
m_connectionManager.ReleaseConnection(state);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue