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, };