mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 10:47:48 +02:00
NBTConnectionReceiveBuffer: Avoid exception when calling Dispose twice
This commit is contained in:
parent
d34f014eab
commit
dad516b223
1 changed files with 5 additions and 2 deletions
|
@ -127,10 +127,13 @@ namespace SMBLibrary.NetBios
|
|||
|
||||
public void Dispose()
|
||||
{
|
||||
if (m_buffer != null)
|
||||
{
|
||||
#if NETSTANDARD2_0
|
||||
ArrayPool<byte>.Shared.Return(m_buffer);
|
||||
ArrayPool<byte>.Shared.Return(m_buffer);
|
||||
#endif
|
||||
m_buffer = null;
|
||||
m_buffer = null;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] Buffer
|
||||
|
|
Loading…
Add table
Reference in a new issue