Skip to content

Commit 69b63fc

Browse files
authored
protocol: ignore resize message if process freed (tsl0922#968)
1 parent 45ef578 commit 69b63fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/protocol.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ int callback_tty(struct lws *wsi, enum lws_callback_reasons reason, void *user,
314314
}
315315
break;
316316
case RESIZE_TERMINAL:
317+
if (pss->process == NULL) break;
317318
json_object_put(
318319
parse_window_size(pss->buffer + 1, pss->len - 1, &pss->process->columns, &pss->process->rows));
319320
pty_resize(pss->process);

0 commit comments

Comments
 (0)