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 23, 2024
1 parent b5babb1 commit b9cbd0b
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 @@ -166,6 +166,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 b9cbd0b

Please sign in to comment.