mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
reanable lsd with custom fix to lt
This commit is contained in:
parent
63fa4601fb
commit
3a77185e1e
@ -183,9 +183,9 @@ void lsd::on_announce(udp::endpoint const& from, char* buffer
|
||||
|
||||
void lsd::close()
|
||||
{
|
||||
m_socket.close();
|
||||
m_broadcast_timer.cancel();
|
||||
m_disabled = true;
|
||||
m_callback.clear();
|
||||
m_socket.close();
|
||||
}
|
||||
|
||||
|
@ -2317,6 +2317,8 @@ namespace detail
|
||||
void session_impl::stop_lsd()
|
||||
{
|
||||
mutex_t::scoped_lock l(m_mutex);
|
||||
if (m_lsd.get())
|
||||
m_lsd->close();
|
||||
m_lsd = 0;
|
||||
}
|
||||
|
||||
|
@ -1642,13 +1642,12 @@ static PyObject *torrent_use_lsd(PyObject *self, PyObject *args)
|
||||
python_long action;
|
||||
PyArg_ParseTuple(args, "i", &action);
|
||||
|
||||
/* if (action){
|
||||
if (action){
|
||||
M_ses->start_lsd();
|
||||
}
|
||||
else{
|
||||
M_ses->stop_lsd();
|
||||
}
|
||||
*/
|
||||
Py_INCREF(Py_None); return Py_None;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user