From f7351a3eb56e3ae00507c957ef4b8b39de625aea Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 3 Apr 2025 17:36:09 +0200 Subject: [PATCH] Fixed missing none check on TCPInterface --- RNS/Interfaces/TCPInterface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RNS/Interfaces/TCPInterface.py b/RNS/Interfaces/TCPInterface.py index 271860d..0ca3990 100644 --- a/RNS/Interfaces/TCPInterface.py +++ b/RNS/Interfaces/TCPInterface.py @@ -331,7 +331,8 @@ class TCPClientInterface(Interface): data_buffer = b"" while True: - data_in = self.socket.recv(4096) + if self.socket: data_in = self.socket.recv(4096) + else: data_in = b"" if len(data_in) > 0: if self.kiss_framing: # Read loop for KISS framing