diff --git a/tor-daemon/tor-daemon.py b/tor-daemon/tor-daemon.py
--- a/tor-daemon/tor-daemon.py
+++ b/tor-daemon/tor-daemon.py
#
@@ -51,7 +51,14 @@ def send_and_respond(sock, command):
#
- res.append(data.decode())
#
+ if l.startswith("250 OK\r\n") or l.endswith("250 OK\r\n"):
#
+ # We've reached the end of the message
#
except socket.timeout as e:
#
if e.args[0] == "timed out":
#
if len(res) == 0 and read_attempts < 2 and len(res) == 0: