aboutsummaryrefslogtreecommitdiff
path: root/socket_conn.py
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2024-04-13 23:02:00 +0200
committerSébastien Dailly <sebastien@dailly.me>2024-04-14 17:31:03 +0200
commit784af6cab0bc195c5c53a6f08bd30fda1f15f977 (patch)
tree9572e897dcc1434fb1b012accf3eb28844d587aa /socket_conn.py
parent89d3bb2421a42dccd4f159b77e9f7fb103a4f8b8 (diff)
Reconnect quicker after a deconnection
Diffstat (limited to 'socket_conn.py')
-rwxr-xr-xsocket_conn.py3
1 files changed, 1 insertions, 2 deletions
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"))