Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9f6103

Browse files
committed
Use conditional accessor to get socket object
1 parent 0b195b8 commit e9f6103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AWSIoTPythonSDK/core/protocol/paho/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ def loop(self, timeout=1.0, max_packets=1):
880880
# used to check if there are any bytes left in the ssl socket
881881
pending_bytes = 0
882882
if self._ssl:
883-
pending_bytes = self._ssl.pending()
883+
pending_bytes = self.socket().pending()
884884

885885
# if bytes are pending do not wait in select
886886
if pending_bytes > 0:

0 commit comments

Comments
 (0)