mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 07:02:30 +00:00
* 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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user