fix issue

pull/410/head
vapao 2021-09-06 18:39:42 +08:00
parent dba7b15c67
commit ceba689868
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ class SSH:
exit_code, line = -1, ''
while True:
line = channel.recv(8196).decode()
if not line:
break
match = self.regex.search(line)
if match:
exit_code = int(line.rsplit()[-1])