diff --git a/torrent.go b/torrent.go index 8bd34dbcf9..4749c8a876 100644 --- a/torrent.go +++ b/torrent.go @@ -2204,7 +2204,7 @@ func (t *Torrent) statsLocked() (ret TorrentStats) { func (t *Torrent) numTotalPeers() int { peers := make(map[string]struct{}) for conn := range t.conns { - ra := conn.conn.RemoteAddr() + ra := conn.RemoteAddr if ra == nil { // It's been closed and doesn't support RemoteAddr. continue