1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-02-08 17:04:13 +00:00

don't crash

This commit is contained in:
Jeff Becker 2016-12-18 13:01:28 -05:00
parent 673b7a95b7
commit eb9ea97e21

View File

@ -417,7 +417,8 @@ namespace client
HandleI2PAccept(stream); HandleI2PAccept(stream);
} else { } else {
SendMessageReply (SAM_STREAM_STATUS_I2P_ERROR, strlen(SAM_STREAM_STATUS_I2P_ERROR), true); 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) size_t SAMSocket::ProcessDatagramSend (char * buf, size_t len, const char * data)