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, '' exit_code, line = -1, ''
while True: while True:
line = channel.recv(8196).decode() line = channel.recv(8196).decode()
if not line:
break
match = self.regex.search(line) match = self.regex.search(line)
if match: if match:
exit_code = int(line.rsplit()[-1]) exit_code = int(line.rsplit()[-1])