All pastes #503680 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-22 23:44 UTC
rendered paste body
regulate@dab:~/codespace/deluge/src$ svn diff 
Index: deluge_core.cpp
===================================================================
--- deluge_core.cpp     (revision 383)
+++ deluge_core.cpp     (working copy)
@@ -337,6 +337,10 @@
 static PyObject *torrent_quit(PyObject *self, PyObject *args)
 {
        printf("core: shutting down session...\r\n");
+    M_settings->tracker_receive_timeout = 5;
+    M_settings->piece_timeout = 5;
+    M_settings->peer_timeout = 5;
+    M_ses->set_settings(*M_settings);
        delete M_ses; // 100% CPU...
        printf("core: removing settings...\r\n");
        delete M_settings;