Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently when peer stopes, DeliverService.stop will be blocked. So you can't use "ctrl+c" or "kill" to interrupt or stop peer. Because DeliverService use a unbuffered channel stopChan to send stop signal. When peer is a gossip.orgLeader, DeliverService don't receive from stopChan. So DeliverService.stop will block at "d.stopChan <- true". Fix the block bug and use a atomic flag to distinguash unexpected connection error and initiative stop. Change-Id: If2afd226c5b074e3b78157d84e2f267e741208aa Signed-off-by: jiangyaoguo <jiangyaoguo@gmail.com>
- Loading branch information