diff --git a/src/Nethermind/Nethermind.Network/PeerManager.cs b/src/Nethermind/Nethermind.Network/PeerManager.cs index ee0fb4485ab..a649d81bd55 100644 --- a/src/Nethermind/Nethermind.Network/PeerManager.cs +++ b/src/Nethermind/Nethermind.Network/PeerManager.cs @@ -278,7 +278,7 @@ private async Task RunPeerUpdateLoop() break; } - await taskChannel.Writer.WriteAsync(peer); + await taskChannel.Writer.WriteAsync(peer, _cancellationTokenSource.Token); } if (_logger.IsTrace)