From 784af6cab0bc195c5c53a6f08bd30fda1f15f977 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 13 Apr 2024 23:02:00 +0200 Subject: Reconnect quicker after a deconnection --- socket_conn.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'socket_conn.py') diff --git a/socket_conn.py b/socket_conn.py index 4367240..6906c0b 100755 --- a/socket_conn.py +++ b/socket_conn.py @@ -51,5 +51,4 @@ class SocketConnection(object): def write(self, content:str) -> None: """ Write into the connection. Raise an exception if disconnected """ - self.s.sendall(content) - self.s.sendall(bytes("\n", "utf-8")) + self.s.sendall(content + bytes("\n", "utf-8")) -- cgit v1.2.3