diff --git a/launch/launch/launcher.py b/launch/launch/launcher.py index 95ab4667d..906b11950 100644 --- a/launch/launch/launcher.py +++ b/launch/launch/launcher.py @@ -53,8 +53,9 @@ def launch(self): asyncio.set_event_loop(loop) returncode = loop.run_until_complete(self._run()) loop.close() - # the watcher must be reset otherwise a repeated invocation fails inside asyncio - asyncio.get_event_loop_policy().set_child_watcher(None) + if os.name != 'nt': + # the watcher must be reset otherwise a repeated invocation fails inside asyncio + asyncio.get_event_loop_policy().set_child_watcher(None) return returncode