exception related fixes. Avoiding functions that may throw in places where exceptions shouldn't be thrown

This commit is contained in:
Arvid Norberg
2008-10-21 08:45:42 +00:00
parent fd64702f31
commit 41d5abf0d8
9 changed files with 50 additions and 26 deletions

View File

@@ -211,8 +211,9 @@ namespace
virtual boost::shared_ptr<peer_plugin> new_connection(
peer_connection* pc)
{
error_code ec;
return boost::shared_ptr<peer_plugin>(new logger_peer_plugin(
pc->remote().address().to_string() + "_"
pc->remote().address().to_string(ec) + "_"
+ boost::lexical_cast<std::string>(pc->remote().port()) + ".log"));
}
};