Skip to content

Commit ab0baf9

Browse files
He-Pintzolov
authored andcommitted
chore: Make closeLatch a final.
1 parent 109aab2 commit ab0baf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: mcp/src/main/java/io/modelcontextprotocol/client/transport/HttpClientSseClientTransport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class HttpClientSseClientTransport implements ClientMcpTransport {
8686
private volatile boolean isClosing = false;
8787

8888
/** Latch for coordinating endpoint discovery */
89-
private CountDownLatch closeLatch = new CountDownLatch(1);
89+
private final CountDownLatch closeLatch = new CountDownLatch(1);
9090

9191
/** Holds the discovered message endpoint URL */
9292
private final AtomicReference<String> messageEndpoint = new AtomicReference<>();

0 commit comments

Comments
 (0)