Skip to content

Commit

Permalink
Merge branch 'Development'
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveOrDevTrying committed Jul 5, 2023
2 parents 753b6db + 05bceec commit 408c24c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tcp.NET.Server/Handlers/TcpHandlerServerBase.cs
Original file line number Diff line number Diff line change
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 408c24c

Please sign in to comment.