Skip to content

Commit

Permalink
Minor bug fixes (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurieCheers-unity authored May 18, 2021
1 parent e0c7fdf commit cfc6bdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/ros_tcp_endpoint/thread_pauser.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ def __init__(self):
self.result = None

def sleep_until_resumed(self):
with condition:
condition.wait()
with self.condition:
self.condition.wait()

def resume_with_result(self, result):
self.result = result
with condition:
condition.notify()
with self.condition:
self.condition.notify()
2 changes: 1 addition & 1 deletion src/ros_tcp_endpoint/unity_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ def unregister(self):
Returns:
"""
self.service.unregister()
self.service.shutdown()

0 comments on commit cfc6bdd

Please sign in to comment.