Skip to content

Commit c7806a8

Browse files
committed
Adjust for older API interface
1 parent 94b5a26 commit c7806a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/source/Plugins/Protocol/MCP/ProtocolServerMCP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ llvm::Error ProtocolServerMCP::Start(ProtocolServer::Connection connection) {
148148
return llvm::createStringError("server already running");
149149

150150
Status status;
151-
m_listener = Socket::Create(connection.protocol, status);
151+
m_listener = Socket::Create(connection.protocol, false, status);
152152
if (status.Fail())
153153
return status.takeError();
154154

lldb/unittests/Protocol/ProtocolMCPServerTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class ProtocolServerMCPTest : public ::testing::Test {
120120
ASSERT_THAT_ERROR(m_server_up->Start(connection), llvm::Succeeded());
121121

122122
// Connect to the server over a TCP socket.
123-
auto connect_socket_up = std::make_unique<TCPSocket>(true);
123+
auto connect_socket_up = std::make_unique<TCPSocket>(true, false);
124124
ASSERT_THAT_ERROR(connect_socket_up
125125
->Connect(llvm::formatv("{0}:{1}", k_localhost,
126126
static_cast<TCPSocket *>(

0 commit comments

Comments
 (0)