Fix: EntityComponent deadlock when adding new devices during update state

pull/786/head
Paulus Schoutsen 2015-12-21 08:56:27 -08:00
parent 35411cd57e
commit 2650d235ea
1 changed files with 2 additions and 1 deletions

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):
"""