diff --git a/source/ftpSession.cpp b/source/ftpSession.cpp index 9a7958d..3700f25 100644 --- a/source/ftpSession.cpp +++ b/source/ftpSession.cpp @@ -508,7 +508,7 @@ bool FtpSession::poll (std::vector const &sessions_) if (i.revents & ~(POLLIN | POLLPRI | POLLOUT)) debug ("Command revents 0x%X\n", i.revents); - if (i.revents & POLLOUT) + if (!session->m_dataSocket && (i.revents & POLLOUT)) session->writeResponse (); if (i.revents & (POLLIN | POLLPRI))