diff --git a/class/core/ssh_terminal.py b/class/core/ssh_terminal.py index b7fcb3409..e8889c3f3 100644 --- a/class/core/ssh_terminal.py +++ b/class/core/ssh_terminal.py @@ -55,6 +55,9 @@ class ssh_terminal(object): __ssh_list = {} __ssh_last_request_time = {} + # lock + _instance_lock = threading.Lock() + def __init__(self): ht = threading.Thread(target=self.heartbeat) ht.start()