Commit 8df3e097 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #1585 from DonLakeFlyer/ListEOF

Fix list EOF handling
parents 61df2beb 939537a1
......@@ -215,7 +215,7 @@ void FileManager::_listAckResponse(Request* listAck)
cListEntries++;
}
if (listAck->hdr.size == 0) {
if (listAck->hdr.size == 0 || cListEntries == 0) {
// Directory is empty, we're done
Q_ASSERT(listAck->hdr.opcode == kRspAck);
_currentOperation = kCOIdle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment