If a pane is killed, cancel reading from the file. GitHub issue 3422.

This commit is contained in:
nicm
2023-01-06 07:09:27 +00:00
parent a41a927441
commit 09afc6c8ee
5 changed files with 60 additions and 15 deletions

View File

@ -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,