Skip to content

Commit

Permalink
fix(teraterm mode): fix client socket broken pipe error
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuangLiang-OSS committed Feb 8, 2024
1 parent b09168f commit 22a05e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyautoport/teraterm.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def client_socket_send(cmd, need_close=False):
client_socket.connect(('localhost', PORT_WRITE))
except ConnectionRefusedError:
print('Did you run session_start &')
return
client_socket.send(cmd)
time.sleep(0.5)
if need_close:
Expand Down

0 comments on commit 22a05e3

Please sign in to comment.