Skip to content

Commit

Permalink
Fix error panic: send on closed channel (ionorg#548)
Browse files Browse the repository at this point in the history
* Set channel = nil instead of closing

* Do not set channel to nil
  • Loading branch information
XuanTung95 authored Apr 26, 2021
1 parent 7c8fbf6 commit 62cb04f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/node/biz/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ func (s *BizServer) Signal(stream biz.Biz_SignalServer) error {
r = nil
}

close(errCh)
close(repCh)
close(reqCh)
log.Infof("BizServer.Signal loop done")
}()

Expand Down

0 comments on commit 62cb04f

Please sign in to comment.