v0.4.2 优化k8s webssh 连接

This commit is contained in:
何全
2019-06-18 10:31:04 +08:00
parent e7be025c86
commit f134790dcb

View File

@@ -18,10 +18,8 @@ class K8SStreamThread(threading.Thread):
self.stream = container_stream
def run(self):
# while not self.ws.exit_status_ready():
while self.stream.is_open():
time.sleep(0.1)
if not self.stream.is_open():
self.ws.close()
try: