From cf84770d90cb72a95cbc43f7350c6c07ba29aef9 Mon Sep 17 00:00:00 2001 From: Theis Pieter Hollebeek Date: Thu, 12 Dec 2024 10:43:37 +0100 Subject: [PATCH] close client before returning --- runtime/rpc_server.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/rpc_server.hpp b/runtime/rpc_server.hpp index 52ff542..c59340b 100644 --- a/runtime/rpc_server.hpp +++ b/runtime/rpc_server.hpp @@ -126,7 +126,6 @@ public: if (err < 0) { return Err { .msg = std::format("could not bind ({})", err) }; }; - return Unit {}; } { auto err = ::listen(socket, 0); @@ -168,6 +167,7 @@ public: auto msg = std::format( "error parsing rpc message: '{}' @ {}:{}\n", err.msg, err.pos.line, err.pos.col); + close(client); return Err { .msg = msg, };