Skip to content

Commit

Permalink
Do not reset retry counter when future is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
mletenay committed May 1, 2024
1 parent 7120000 commit 4332ba7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion goodwe/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ def _retry_mechanism(self) -> None:
"""Retry mechanism to prevent hanging transport"""
if self.response_future.done():
logger.debug("Response already received.")
self._retry = 0
elif self._retry < self.retries:
if self._timer:
logger.debug("Failed to receive response to %s in time (%ds).", self.command, self.timeout)
Expand Down

0 comments on commit 4332ba7

Please sign in to comment.