ignore unknown metadata messages

This commit is contained in:
Arvid Norberg 2009-11-24 19:40:54 +00:00
parent 7ae9ed1a7d
commit 32ee88bc05
2 changed files with 5 additions and 3 deletions

View File

@ -80,6 +80,10 @@
* added session::is_dht_running() function
* added torrent_handle::force_dht_announce()
release 0.14.8
* ignore unkown metadata messages
release 0.14.7
* fixed deadlock in natpmp

View File

@ -355,9 +355,7 @@ namespace libtorrent { namespace
}
break;
default:
{
m_pc.disconnect(error_code(errors::invalid_metadata_message, libtorrent_category), 2);
}
// unknown message, ignore
}
return true;
}