1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-18 00:09:58 +00:00

Merge remote-tracking branch 'purple/openssl'

This commit is contained in:
Jeff Becker 2016-12-18 13:31:02 -05:00
commit 557696b1d8

View File

@ -417,7 +417,9 @@ namespace client
HandleI2PAccept(stream);
} else {
SendMessageReply (SAM_STREAM_STATUS_I2P_ERROR, strlen(SAM_STREAM_STATUS_I2P_ERROR), true);
Terminate();
auto s = shared_from_this ();
m_Owner.GetService ().post ([s] { s->Terminate (); });
}
}
size_t SAMSocket::ProcessDatagramSend (char * buf, size_t len, const char * data)
@ -582,8 +584,8 @@ namespace client
{
if (!ecode)
s->Receive ();
else
s->Terminate ();
else
s->m_Owner.GetService ().post ([s] { s->Terminate (); });
});
}
}