Skip to content

Commit

Permalink
Fix oops with using declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Oct 11, 2020
1 parent c6ec3c9 commit 7cb5d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lidgren.Network/Encryption/NetCryptoProviderBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public override bool Encrypt(NetOutgoingMessage msg)
{
int unEncLenBits = msg.LengthBits;

using var ms = new MemoryStream();
var ms = new MemoryStream();
var cs = new CryptoStream(ms, m_algorithm.CreateEncryptor(), CryptoStreamMode.Write, leaveOpen: true);
cs.Write(msg.m_data, 0, msg.LengthBytes);
cs.Close();
Expand Down

0 comments on commit 7cb5d9c

Please sign in to comment.