diff options
author | nicm <nicm> | 2023-01-06 07:09:27 +0000 |
---|---|---|
committer | nicm <nicm> | 2023-01-06 07:09:27 +0000 |
commit | 09afc6c8ee971918d925c441c41a9de7f598efb7 (patch) | |
tree | 790231afa3b8ae46b4b7dc13a925a23c0dc5dfdc /client.c | |
parent | a41a92744188ec5c8a8d4ddc100ec15b52d04603 (diff) |
If a pane is killed, cancel reading from the file. GitHub issue 3422.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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, |