summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authornicm <nicm>2023-01-06 07:09:27 +0000
committernicm <nicm>2023-01-06 07:09:27 +0000
commit09afc6c8ee971918d925c441c41a9de7f598efb7 (patch)
tree790231afa3b8ae46b4b7dc13a925a23c0dc5dfdc /client.c
parenta41a92744188ec5c8a8d4ddc100ec15b52d04603 (diff)
If a pane is killed, cancel reading from the file. GitHub issue 3422.
Diffstat (limited to 'client.c')
-rw-r--r--client.c3
1 files changed, 3 insertions, 0 deletions
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,