Don't break SAM connection if error occurs

This fixes #3
This commit is contained in:
Mikhail Titov 2015-06-14 14:17:44 -05:00
parent ee6847293f
commit da282fdde0
1 changed files with 10 additions and 4 deletions

View File

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