From fdbdfa679bd75f4ede91f3508ddb0636eb5c6c2e Mon Sep 17 00:00:00 2001 From: Michael Theall Date: Sun, 26 Apr 2020 20:33:09 -0500 Subject: [PATCH] Fix oops --- source/ftpSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))