Skip to content

Commit be233b2

Browse files
authored
Merge pull request #193 from markruys/feature/Error_in_packet_loop
Prevent the error "task_done() called too many times"
2 parents f9f825d + 60c8878 commit be233b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/jablotron80/jablotron.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,10 +786,11 @@ async def read_send_packet_loop(self) -> None:
786786
send_cmd.confirm(True)
787787
if send_cmd.name == "Details":
788788
self.update_devices = True
789-
self._cmd_q.task_done()
790789

791790
retries -= 1
792791

792+
self._cmd_q.task_done()
793+
793794
except Exception:
794795
LOGGER.exception("Unexpected error in packet loop")
795796
self.disconnect()

0 commit comments

Comments
 (0)