mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-19 21:57:13 -04:00
fix rebase issue of duplicate close
This commit is contained in:
@@ -621,10 +621,8 @@ const closeMcpConnection = async (options: CommonMcpOptions) => {
|
||||
const { requestId } = options;
|
||||
const mcpClient = _getMcpClient(requestId);
|
||||
if (mcpClient) {
|
||||
await mcpClient.close();
|
||||
try {
|
||||
// Only terminate session if transport is StreamableHTTPClientTransport
|
||||
|
||||
if ('terminateSession' in mcpClient.transport) {
|
||||
await mcpClient.transport.terminateSession();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user