From feabba44702cf0720535b3af8e1d0ca89ae2b63d Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 12 Feb 2013 17:54:36 +0100 Subject: Unit tests for SMTPCommand and SMTPCommandSet. Fixed SMTPCommandSet::isFinished(). --- src/net/smtp/SMTPCommandSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/net/smtp/SMTPCommandSet.cpp b/src/net/smtp/SMTPCommandSet.cpp index 8644ca48..0454e184 100644 --- a/src/net/smtp/SMTPCommandSet.cpp +++ b/src/net/smtp/SMTPCommandSet.cpp @@ -126,7 +126,7 @@ const string SMTPCommandSet::getText() const const bool SMTPCommandSet::isFinished() const { - return (m_pipeline && m_started) || (m_commands.size() == 0); + return (m_pipeline && m_started) || (m_commands.size() == 0 && m_started); } -- cgit v1.2.3