Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Termina1 committed Nov 21, 2024
1 parent 6554953 commit 5f651fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func (p *Peer) keepRead(ctx context.Context) error {
defer close(readChannel)
defer close(signal)
go func() {
defer close(errChannel)
for ctx.Err() == nil {
defer close(errChannel)
_, ok := <-signal
if !ok {
return
Expand Down

0 comments on commit 5f651fb

Please sign in to comment.