From 09afc6c8ee971918d925c441c41a9de7f598efb7 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 6 Jan 2023 07:09:27 +0000 Subject: If a pane is killed, cancel reading from the file. GitHub issue 3422. --- client.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client.c') diff --git a/client.c b/client.c index ef7dea69..4f91d30e 100644 --- a/client.c +++ b/client.c @@ -693,6 +693,9 @@ client_dispatch_wait(struct imsg *imsg) !(client_flags & CLIENT_CONTROL), client_file_check_cb, NULL); break; + case MSG_READ_CANCEL: + file_read_cancel(&client_files, imsg); + break; case MSG_WRITE_OPEN: file_write_open(&client_files, client_peer, imsg, 1, !(client_flags & CLIENT_CONTROL), client_file_check_cb, -- cgit v1.2.3