Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Allison Thackston authored and 130s committed Feb 15, 2023
1 parent e50c2f0 commit c2aaabc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion smach/src/smach/concurrence.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ def execute(self, parent_ud = smach.UserData()):
# Wait for all states to terminate
[t.join() for t in self._threads.values()]


# Check for user code exception
if self._user_code_exception:
self._user_code_exception = False
Expand Down
4 changes: 2 additions & 2 deletions smach_ros/src/smach_ros/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from multiprocessing.pool import ThreadPool
import smach

__all__ = ['set_preempt_handler', 'start', 'get_outcome']
__all__ = ['set_preempt_handler', 'start']

# Signal handler
def set_preempt_handler(sc):
Expand All @@ -33,4 +33,4 @@ def handler(sc):
def start(sm):
pool = ThreadPool(processes=1)
async_result = pool.apply_async(sm.execute)
return async_result
return async_result

0 comments on commit c2aaabc

Please sign in to comment.