mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 21:06:39 +01:00
don't crash
This commit is contained in:
parent
673b7a95b7
commit
eb9ea97e21
1 changed files with 2 additions and 1 deletions
3
SAM.cpp
3
SAM.cpp
|
@ -417,7 +417,8 @@ 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue