Browse Source

use we_dont_have to recover from corrupt swarm database.

eventually we will download the pieces again (it works)
miguelfreitas
Miguel Freitas 11 years ago
parent
commit
8328c7222f
  1. 3
      libtorrent/src/torrent.cpp

3
libtorrent/src/torrent.cpp

@ -942,6 +942,9 @@ namespace libtorrent @@ -942,6 +942,9 @@ namespace libtorrent
if (ret > 0) {
pieces->push_back( std::string(j.buffer, ret));
} else {
printf("piece read error (database corrupt?) - setting we_dont_have(%d)\n", j.piece);
m_picker->we_dont_have(j.piece);
}
(*reqs)--;

Loading…
Cancel
Save