Skip to content

Commit 9ca29cf

Browse files
emnoorcode-of-kpp
authored andcommitted
fix socket recv error being silently ignored
1 parent 1adc83f commit 9ca29cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

smpplib/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def read_pdu(self):
256256
except socket.error as e:
257257
self.logger.warning(e)
258258
raise exceptions.ConnectionError()
259-
if not raw_pdu:
259+
if not raw_pdu_part:
260260
raise exceptions.ConnectionError()
261261
raw_pdu += raw_pdu_part
262262

0 commit comments

Comments
 (0)