Skip to content

Commit 1680a27

Browse files
committed
Add clarifying comment
1 parent 0bcdbee commit 1680a27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mcp/src/main/java/io/modelcontextprotocol/client/McpAsyncClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ private void handleException(Throwable t) {
245245
if (previous != null) {
246246
previous.close();
247247
}
248+
// Providing an empty operation since we are only interested in triggering the
249+
// implicit initialization step.
248250
withSession("re-initializing", result -> Mono.empty()).subscribe();
249251
}
250252
}

0 commit comments

Comments
 (0)