* Fixed various memory leaks/errors.

* Don't increment beyond end when incrementing a entry's completed
counter.

* Don't allow ChokeManager::try_unchoke to succeed when it has been
less than 10 seconds since the last unchoke.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@562 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-09-17 01:31:30 +00:00
parent 5ada857c3e
commit 94d31cc681
4 changed files with 22 additions and 8 deletions
+7
View File
@@ -47,6 +47,7 @@
#include <sigc++/retype_return.h>
#include <torrent/http.h>
#include <torrent/torrent.h>
#include <torrent/exceptions.h>
#include <rak/functional.h>
#ifdef USE_EXECINFO
@@ -240,6 +241,12 @@ main(int argc, char** argv) {
uiControl.cleanup();
} catch (torrent::base_error& e) {
display::Canvas::cleanup();
std::cout << "Caught exception from libtorrent: \"" << e.what() << '"' << std::endl;
return -1;
} catch (std::exception& e) {
display::Canvas::cleanup();