From f3d783035247a8dd62a5ecc86db99e4e47b7655d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 8 Feb 2026 21:25:37 +0530 Subject: [PATCH] Fix async repose rc commands not decrementing peer unhandled message counter This was causing peers to not be pruned leading to eventual starvation. Fixes #9487 --- kitty/child-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 9f3312a1f..a0805d47f 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -508,7 +508,7 @@ parse_input(ChildMonitor *self) { } if (resp) { if (PyBytes_Check(resp)) send_response_to_peer(msg->peer_id, PyBytes_AS_STRING(resp), PyBytes_GET_SIZE(resp)); - else if (resp == Py_None) send_response_to_peer(msg->peer_id, NULL, 0); + else if (resp == Py_None || resp == Py_True) send_response_to_peer(msg->peer_id, NULL, 0); Py_CLEAR(resp); } else send_response_to_peer(msg->peer_id, NULL, 0); }