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

Method tryAutomaticDisconnect

src/async/smtp/MCSMTPAsyncSession.cpp:198–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void SMTPAsyncSession::tryAutomaticDisconnect()
199{
200 // It's safe since no thread is running when this function is called.
201 if (mSession->isDisconnected()) {
202 return;
203 }
204
205 cancelDelayedPerformMethod((Object::Method) &SMTPAsyncSession::tryAutomaticDisconnectAfterDelay, NULL);
206 performMethodAfterDelay((Object::Method) &SMTPAsyncSession::tryAutomaticDisconnectAfterDelay, NULL, 30);
207}
208
209void SMTPAsyncSession::tryAutomaticDisconnectAfterDelay(void * context)
210{

Callers 1

queueStoppedRunningMethod · 0.45

Calls 1

isDisconnectedMethod · 0.45

Tested by

no test coverage detected