No need to send an extra \n

main
Florent Daigniere 2 years ago
parent cdc9b63a46
commit 96d9289630

@ -118,7 +118,9 @@ class DictProtocol(asyncio.Protocol):
break
rows.append(self.process_lookup((path.decode("utf8")+k).encode("utf8"), user, is_iter=True))
await asyncio.gather(*rows)
return await self.reply(b"\n") # ITER_FINISHED
async with self.transport_lock:
self.transport.write(b"\n") # ITER_FINISHED
return
except KeyError:
return await self.reply(b"F")
except Exception as e:
@ -160,7 +162,6 @@ class DictProtocol(asyncio.Protocol):
logging.debug("Replying {} with {}".format(command, args))
self.transport.write(command)
self.transport.write(b"\t".join(map(tabescape, args)))
if end:
self.transport.write(b"\n")
@classmethod

Loading…
Cancel
Save