diff options
author | Vincent Richard <[email protected]> | 2014-01-05 19:00:34 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-01-05 19:00:34 +0000 |
commit | 59e635d31782ae139569035db10cbc34de186b20 (patch) | |
tree | 1a4bccafe26530cc3a92497ee34c71e633991061 | |
parent | Report sending progress when chunking is supported. (diff) | |
download | vmime-59e635d31782ae139569035db10cbc34de186b20.tar.gz vmime-59e635d31782ae139569035db10cbc34de186b20.zip |
Check for NULL progress listener.
-rw-r--r-- | src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp b/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp index 5f59e381..35ff4e0d 100644 --- a/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp +++ b/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp @@ -141,7 +141,8 @@ void SMTPChunkingOutputStreamAdapter::flush() sendChunk(m_buffer, m_bufferSize, /* last */ true); m_bufferSize = 0; - m_progress->stop(m_totalSize); + if (m_progress) + m_progress->stop(m_totalSize); } |