Only visit via file.
@@ -33,12 +33,8 @@ Session::VisitTask::run()
bool
Session::visit(FastOS_FileInterface & file, DomainPart & dp) {
Packet packet(size_t(-1));
- bool more(false);
- if (dp.isClosed()) {
- more = dp.visit(file, _range, packet);
- } else {
- more = dp.visit(_range, packet);
- }
+ bool more = dp.visit(file, _range, packet);
+
if ( ! packet.getHandle().empty()) {
send(packet);
}
