Skip to content

Commit 357794f

Browse files
authored
Merge pull request #228 from scottslewis/master
Fix for ServerStringChannel.writeMessage to accomodate mcp notifyClients messaging before client connect
2 parents aa3a6fa + c015425 commit 357794f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

framework/bundles/org.eclipse.ecf.ai.mcp.transports/src/org/eclipse/ecf/ai/mcp/transports/ServerStringChannel.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public void writeMessage(String message) throws IOException {
8383
if (c != null) {
8484
writeMessageToChannel(c, message);
8585
} else {
86-
throw new IOException("not connected");
86+
if (logger.isDebugEnabled()) {
87+
logger.debug("No acceptedClient attached to writeMessage={}", message);
88+
}
8789
}
8890
}
8991

0 commit comments

Comments
 (0)