mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-06-29 17:07:20 -04:00
Fixed missing none check on TCPInterface
This commit is contained in:
parent
28d55279d8
commit
f7351a3eb5
1 changed files with 2 additions and 1 deletions
|
@ -331,7 +331,8 @@ class TCPClientInterface(Interface):
|
||||||
data_buffer = b""
|
data_buffer = b""
|
||||||
|
|
||||||
while True:
|
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 len(data_in) > 0:
|
||||||
if self.kiss_framing:
|
if self.kiss_framing:
|
||||||
# Read loop for KISS framing
|
# Read loop for KISS framing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue