Update StdioClientTransport.cs (#68)
This commit is contained in:
parent
d83640d552
commit
cdcf134e7a
1 changed files with 3 additions and 2 deletions
|
|
@ -209,7 +209,8 @@ public sealed class StdioClientTransport : TransportBase, IClientTransport
|
|||
private async Task ProcessMessageAsync(string line, CancellationToken cancellationToken)
|
||||
{
|
||||
try
|
||||
{
|
||||
{
|
||||
line=line.Trim();//Fixes an error when the service prefixes nonprintable characters
|
||||
var message = JsonSerializer.Deserialize<IJsonRpcMessage>(line, _jsonOptions);
|
||||
if (message != null)
|
||||
{
|
||||
|
|
@ -296,4 +297,4 @@ public sealed class StdioClientTransport : TransportBase, IClientTransport
|
|||
_logger.TransportCleanedUp(EndpointName);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue