We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25fad28 commit 960bc0fCopy full SHA for 960bc0f
pymodbus/client/async/asyncio/__init__.py
@@ -725,7 +725,7 @@ def protocol_made_connection(self, protocol):
725
Protocol notification of successful connection.
726
"""
727
_logger.info('Protocol made connection.')
728
- if not self._connected_event.is_set():
+ if not self._connected:
729
self._connected_event.set()
730
self.protocol = protocol
731
else:
@@ -736,7 +736,7 @@ def protocol_lost_connection(self, protocol):
736
737
Protocol notification of lost connection.
738
739
- if self._connected_event.is_set():
+ if self._connected:
740
_logger.info('Protocol lost connection.')
741
if protocol is not self.protocol:
742
_logger.error('Factory protocol callback called'
0 commit comments