fixup! Don't break SAM connection if error occurs

Propagate i2p result code, related to #3
This commit is contained in:
Mikhail Titov 2015-06-24 19:33:36 -05:00
parent 3f2e660fcf
commit 020f0816df
1 changed files with 2 additions and 2 deletions

View File

@ -414,6 +414,7 @@ namespace libtorrent
}
}
error_code ec(result, get_i2p_category());
switch (result)
{
case i2p_error::no_error:
@ -421,7 +422,6 @@ namespace libtorrent
break;
default:
{
error_code ec (result, get_i2p_category ());
handle_error (ec, h);
return;
}
@ -449,7 +449,7 @@ namespace libtorrent
case read_connect_response:
case read_session_create_response:
case read_name_lookup_response:
(*h)(e);
(*h)(ec);
std::vector<char>().swap(m_buffer);
break;
case read_accept_response: