Skip to content

Commit

Permalink
Daemon as keyword arg
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Oct 17, 2017
1 parent 07ddde2 commit ace6fe0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rclpy/rclpy/graph_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ def __del__(self):
def _try_start_thread(self):
# Assumes lock is already held
if self._thread is None:
self._thread = threading.Thread(target=self._runner)
self._thread.daemon = True
self._thread = threading.Thread(target=self._runner, daemon=True)
self._thread.start()

def add_timer(self, timer_period_ns, callback):
Expand Down

0 comments on commit ace6fe0

Please sign in to comment.