Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into NETCore3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveOrDevTrying committed Jul 5, 2023
2 parents 62ef76b + 408c24c commit 6990fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tcp.NET.Server/Handlers/TcpHandlerServerBase.cs
Expand Up @@ -403,7 +403,7 @@ public override async Task<bool> SendAsync(byte[] message, Z connection, Cancell
{
var bytes = Statics.ByteArrayAppend(message, _parameters.EndOfLineBytes);

if (connection != null)
if (connection.SslStream != null)
{
await connection.SslStream.WriteAsync(bytes, cancellationToken).ConfigureAwait(false);
await connection.SslStream.FlushAsync(cancellationToken).ConfigureAwait(false);
Expand Down

0 comments on commit 6990fc8

Please sign in to comment.