mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-03 14:31:49 +02:00
Client: Minor code refactoring
This commit is contained in:
parent
71e2e4096f
commit
0dde935ffe
2 changed files with 4 additions and 2 deletions
|
@ -677,7 +677,8 @@ namespace SMBLibrary.Client
|
|||
{
|
||||
try
|
||||
{
|
||||
socket.Send(packet.GetBytes());
|
||||
byte[] packetBytes = packet.GetBytes();
|
||||
socket.Send(packetBytes);
|
||||
}
|
||||
catch (SocketException)
|
||||
{
|
||||
|
|
|
@ -523,7 +523,8 @@ namespace SMBLibrary.Client
|
|||
{
|
||||
try
|
||||
{
|
||||
socket.Send(packet.GetBytes());
|
||||
byte[] packetBytes = packet.GetBytes();
|
||||
socket.Send(packetBytes);
|
||||
}
|
||||
catch (SocketException)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue