Merge pull request #5 from mlt/i2p-sam-failing-names

Don't break SAM connection if error occurs
This commit is contained in:
Arvid Norberg 2015-06-16 20:44:42 -04:00
commit 23f14d3de9
1 changed files with 10 additions and 4 deletions

View File

@ -414,12 +414,18 @@ namespace libtorrent
} }
} }
if (result != i2p_error::no_error) switch (result)
{ {
error_code ec(result, get_i2p_category()); case i2p_error::no_error:
handle_error(ec, h); case i2p_error::invalid_key:
break;
default:
{
error_code ec (result, get_i2p_category ());
handle_error (ec, h);
return; return;
} }
}
switch (m_state) switch (m_state)
{ {