Permalink
Browse files

Fixed deadlock in Condition variable when starting Behaviours.

  • Loading branch information...
javipalanca committed Jan 23, 2018
1 parent 4c715ea commit fd55054609f1c63e71c0e00352f9ac439d95b175
Showing with 3 additions and 3 deletions.
  1. +3 −3 spade/Behaviour.py
View
@@ -534,11 +534,11 @@ def exitCode(self):
return self._exitcode
def run(self):
# Get condition and wait for the other behaviours
self.myAgent.behavioursGo.acquire()
if not self.myAgent._running:
# Get condition and wait for the other behaviours
self.myAgent.behavioursGo.acquire()
self.myAgent.behavioursGo.wait()
self.myAgent.behavioursGo.release()
self.myAgent.behavioursGo.release()
"""
# Check wether this behaviour has already started

0 comments on commit fd55054

Please sign in to comment.