Refine connection status flags

This commit is contained in:
Matt Joiner 2014-12-09 00:26:06 -06:00
parent b52f866e90
commit 8d87bb83a6
1 changed files with 4 additions and 1 deletions

View File

@ -176,8 +176,11 @@ func (cn *connection) WriteStatus(w io.Writer) {
if len(cn.Requests) != 0 {
c('D')
}
if !cn.Interested {
c('z')
}
if cn.PeerChoked && cn.Interested {
c('d')
c('i')
}
if !cn.Choked {
if cn.PeerInterested {