Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove watcher from Windows (they don't exist)
Fixes #218
  • Loading branch information
jslay88 authored May 10, 2021
commit e9d0ad67781db2b2c2adc722c518164ffc6d03d0
3 changes: 2 additions & 1 deletion pyhap/accessory_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ def start(self):
"""
try:
logger.info("Starting the event loop")
if threading.current_thread() is threading.main_thread():
if threading.current_thread() is threading.main_thread() \
and os.name != "nt":
logger.debug("Setting child watcher")
watcher = asyncio.SafeChildWatcher()
watcher.attach_loop(self.loop)
Expand Down