mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
some cleanup
This commit is contained in:
4
SAM.cpp
4
SAM.cpp
@@ -249,7 +249,7 @@ namespace stream
|
||||
m_SocketType = eSAMSocketTypeStream;
|
||||
session->sockets.push_back (this);
|
||||
m_Stream = session->localDestination->CreateNewOutgoingStream (*leaseSet);
|
||||
m_Stream->Send ((uint8_t *)m_Buffer, 0, 0); // connect
|
||||
m_Stream->Send ((uint8_t *)m_Buffer, 0); // connect
|
||||
I2PReceive ();
|
||||
SendMessageReply (SAM_STREAM_STATUS_OK, strlen(SAM_STREAM_STATUS_OK), false);
|
||||
}
|
||||
@@ -345,7 +345,7 @@ namespace stream
|
||||
else
|
||||
{
|
||||
if (m_Stream)
|
||||
m_Stream->Send ((uint8_t *)m_Buffer, bytes_transferred, 0);
|
||||
m_Stream->Send ((uint8_t *)m_Buffer, bytes_transferred);
|
||||
Receive ();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user