Fix: EntityComponent deadlock when adding new devices during update state

This commit is contained in:
Paulus Schoutsen 2015-12-21 08:56:27 -08:00
parent 35411cd57e
commit 2650d235ea

View File

@ -39,7 +39,8 @@ class EntityComponent(object):
self.is_polling = False
self.config = None
self.lock = Lock()
# Because updating state might cause an entity to be found
self.lock = RLock()
def setup(self, config):
"""