small fixes after suggested changes

This commit is contained in:
ihrpr 2025-04-17 17:34:15 +01:00
commit 5dba9477ff
No known key found for this signature in database

View file

@ -505,10 +505,7 @@ export class StreamableHTTPClientTransport implements Transport {
);
}
// If session termination was successful, clear our session ID
if (response.ok) {
this._sessionId = undefined;
}
this._sessionId = undefined;
} catch (error) {
this.onerror?.(error as Error);
throw error;