ensure we set channel in lock
_set_current_channel must be called with a lock Change-Id: I151564670946b3399158352c51d1670b9e7291fb
This commit is contained in:
parent
8d2331a3b7
commit
1dc575ce5b
@ -607,6 +607,7 @@ class Connection(object):
|
|||||||
self._heartbeat_support_log_emitted = False
|
self._heartbeat_support_log_emitted = False
|
||||||
|
|
||||||
# NOTE(sileht): just ensure the connection is setuped at startup
|
# NOTE(sileht): just ensure the connection is setuped at startup
|
||||||
|
with self._connection_lock:
|
||||||
self.ensure_connection()
|
self.ensure_connection()
|
||||||
|
|
||||||
# NOTE(sileht): if purpose is PURPOSE_LISTEN
|
# NOTE(sileht): if purpose is PURPOSE_LISTEN
|
||||||
|
Loading…
Reference in New Issue
Block a user