| 974 | } |
| 975 | |
| 976 | void 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 | |
| 991 | bool SMTPSession::isDisconnected() |
| 992 | { |