protocol: fix ws code on process exit

This commit is contained in:
Shuanglei Tao
2020-12-31 22:18:22 +08:00
parent bc1cf06260
commit 4f91d763b4
2 changed files with 14 additions and 9 deletions

View File

@@ -15,6 +15,8 @@
#define SET_WINDOW_TITLE '1'
#define SET_PREFERENCES '2'
#define MAX_READ_RETRY 2
// url paths
struct endpoints {
char *ws;
@@ -48,6 +50,7 @@ struct pty_proc {
int pty;
char *pty_buffer;
ssize_t pty_len;
int err_count;
uv_pipe_t pipe;