mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Name the dhcp watcher thread (#49144)
When getting py-spy reports, it is helpful to get thread names to make it easier to track down issues.
This commit is contained in:
@@ -312,6 +312,8 @@ class DHCPWatcher(WatcherBase):
|
||||
)
|
||||
|
||||
self._sniffer.start()
|
||||
if self._sniffer.thread:
|
||||
self._sniffer.thread.name = self.__class__.__name__
|
||||
|
||||
def handle_dhcp_packet(self, packet):
|
||||
"""Process a dhcp packet."""
|
||||
|
Reference in New Issue
Block a user