Skip to content

Commit

Permalink
protocol: ignore resize message if process freed (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmartin committed Aug 23, 2022
1 parent 45ef578 commit 69b63fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/protocol.c
Expand Up @@ -314,6 +314,7 @@ int callback_tty(struct lws *wsi, enum lws_callback_reasons reason, void *user,
}
break;
case RESIZE_TERMINAL:
if (pss->process == NULL) break;
json_object_put(
parse_window_size(pss->buffer + 1, pss->len - 1, &pss->process->columns, &pss->process->rows));
pty_resize(pss->process);
Expand Down

0 comments on commit 69b63fc

Please sign in to comment.