Browse Source

don't crash

pull/742/head
Jeff Becker 8 years ago
parent
commit
eb9ea97e21
  1. 3
      SAM.cpp

3
SAM.cpp

@ -417,7 +417,8 @@ namespace client @@ -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…
Cancel
Save