Merge pull request #5 from mlt/i2p-sam-failing-names
Don't break SAM connection if error occurs
This commit is contained in:
commit
23f14d3de9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue