diff options
-rw-r--r-- | notmuch-tcp-server | 3 |
1 files changed, 2 insertions, 1 deletions
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: | |||
70 | 70 | ||
71 | with BytesIO() as buffer: | 71 | with BytesIO() as buffer: |
72 | while True: | 72 | while True: |
73 | logger.debug("Reading arguments...") | ||
73 | resp = conn.recv(256) | 74 | resp = conn.recv(256) |
74 | buffer.write(resp) | 75 | buffer.write(resp) |
75 | buffer.seek(0) | 76 | buffer.seek(0) |
76 | start_index = 0 | 77 | start_index = 0 |
77 | for line in buffer: | 78 | for line in buffer: |
78 | if not line.find(b"\n"): | 79 | if line[-1:] != b"\n": |
79 | break | 80 | break |
80 | 81 | ||
81 | start_index += len(line) | 82 | start_index += len(line) |