Skip to content

Commit

Permalink
remove async launcher to fix #51 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood authored Mar 21, 2017
1 parent d7ff1de commit 27d0be7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 127 deletions.
18 changes: 0 additions & 18 deletions launch/launch/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,21 +391,3 @@ def _print_process_stacktrace(self, name, future, exception):
print('(%s)' % name, ' ' + line.strip(), file=sys.stderr)
print('(%s) %s: %s' % (name, type(exception).__name__, str(exception)),
file=sys.stderr)


class AsynchronousLauncher(threading.Thread):

def __init__(self, launcher):
super(AsynchronousLauncher, self).__init__()
self.launcher = launcher

def terminate(self):
self.launcher.interrupt_launch()

def run(self):
if os.name != 'nt' and not isinstance(threading.current_thread(), threading._MainThread):
# explicitly create event loop when not running in main thread
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)

self.launcher.launch()
46 changes: 0 additions & 46 deletions launch/test/test_interrupt_asynchronous_launcher.py

This file was deleted.

63 changes: 0 additions & 63 deletions launch/test/test_module_level_launch.py

This file was deleted.

0 comments on commit 27d0be7

Please sign in to comment.