Skip to content

Commit

Permalink
Remove duplicate Sessions.Count check
Browse files Browse the repository at this point in the history
  • Loading branch information
vncoelho committed Sep 21, 2020
1 parent 4397e60 commit 4bac9ef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/neo/Network/P2P/TaskManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ private void RequestTasks(bool sendPing)

private void SendPingMessage()
{
if (sessions.Count == 0) return;

TrimmedBlock block;
using (SnapshotView snapshot = Blockchain.Singleton.GetSnapshot())
{
Expand Down

0 comments on commit 4bac9ef

Please sign in to comment.