MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / cancelMessageSending

Method cancelMessageSending

src/core/smtp/MCSMTPSession.cpp:976–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974}
975
976void SMTPSession::cancelMessageSending()
977{
978 // main thread
979
980 setSendingCancelled(true);
981
982 CAN_CANCEL_LOCK();
983 if (mCanCancel) {
984 if (mSmtp != NULL && mSmtp->stream != NULL) {
985 mailstream_cancel(mSmtp->stream);
986 }
987 }
988 CAN_CANCEL_UNLOCK();
989}
990
991bool SMTPSession::isDisconnected()
992{

Callers 1

cancelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected