added failcount to peer_info. fixes #31

This commit is contained in:
Arvid Norberg
2007-04-13 20:19:04 +00:00
parent 591ec48e77
commit a22ad5ad33
4 changed files with 12 additions and 5 deletions

View File

@@ -247,11 +247,13 @@ namespace libtorrent
if (peer_info_struct())
{
p.source = peer_info_struct()->source;
p.failcount = peer_info_struct()->failcount;
}
else
{
assert(!is_local());
p.source = 0;
p.failcount = 0;
}
}