Skip to content

Commit

Permalink
fix: Fixed connection resetting when packet merging is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoTenPvP committed Dec 11, 2019
1 parent fafe3a6 commit 27ac220
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Ruffles/Connections/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,12 @@ internal void Reset()
HandshakeResendAttempts = 0;

HeartbeatChannel.Reset();
Merger.Clear();

if (Merger != null)
{
// Merger can be null if you
Merger.Clear();
}

PreConnectionChallengeTimestamp = 0;
PreConnectionChallengeCounter = 0;
Expand Down

0 comments on commit 27ac220

Please sign in to comment.