mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 23:52:30 +00:00
* Minor cleanup in rtorrent.
* Changing priorities of closed torrents caused a crash due to empty ChunkSelector, fixed. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@615 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -158,15 +158,14 @@ apply_max_open_sockets(Control* m, int arg) {
|
||||
|
||||
void
|
||||
apply_bind(Control* m, const std::string& arg) {
|
||||
bool reopenListen = torrent::listen_port();
|
||||
|
||||
if (reopenListen)
|
||||
if (torrent::listen_port() != 0) {
|
||||
torrent::listen_close();
|
||||
|
||||
torrent::set_bind_address(arg);
|
||||
|
||||
if (reopenListen)
|
||||
torrent::set_bind_address(arg);
|
||||
m->core()->listen_open();
|
||||
|
||||
} else {
|
||||
torrent::set_bind_address(arg);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user