From 15dcba11d052f265f56ce8c57824c39eefb36153 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 8 Mar 2020 11:54:11 +0100 Subject: ... --- notmuch-tcp-server | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notmuch-tcp-server b/notmuch-tcp-server index 50ac8be..69f61f5 100644 --- a/notmuch-tcp-server +++ b/notmuch-tcp-server @@ -70,12 +70,13 @@ with s as sock: with BytesIO() as buffer: while True: + logger.debug("Reading arguments...") resp = conn.recv(256) buffer.write(resp) buffer.seek(0) start_index = 0 for line in buffer: - if not line.find(b"\n"): + if line[-1:] != b"\n": break start_index += len(line) -- cgit v1.2.3