Skip to content

Commit a671e59

Browse files
committed
Remove double setting of _is_running
1 parent bcc8d7f commit a671e59

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

plugwise_usb/network/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ async def start(self, load: bool = True) -> None:
517517
await self._register.start()
518518
self._subscribe_to_protocol_events()
519519
await self._subscribe_to_node_events()
520-
self._is_running = True
521520
if len(self._registry_stragglers) > 0 and (
522521
self._discover_stragglers_task is None
523522
or self._discover_stragglers_task.done()
@@ -549,7 +548,6 @@ async def stop(self) -> None:
549548
and not self._discover_stragglers_task.done()
550549
):
551550
self._discover_stragglers_task.cancel()
552-
self._is_running = False
553551
self._unsubscribe_to_protocol_events()
554552
await self._unload_discovered_nodes()
555553
self._register.stop()

0 commit comments

Comments
 (0)