Skip to content

Commit

Permalink
Merge pull request #300 from aws/FixSocketAccess
Browse files Browse the repository at this point in the history
Use conditional accessor to get socket object
  • Loading branch information
bretambrose authored Dec 7, 2021
2 parents 0b195b8 + e9f6103 commit 90d7b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AWSIoTPythonSDK/core/protocol/paho/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def loop(self, timeout=1.0, max_packets=1):
# used to check if there are any bytes left in the ssl socket
pending_bytes = 0
if self._ssl:
pending_bytes = self._ssl.pending()
pending_bytes = self.socket().pending()

# if bytes are pending do not wait in select
if pending_bytes > 0:
Expand Down

0 comments on commit 90d7b05

Please sign in to comment.