forked from premiere/premiere-libtorrent
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());
|
case i2p_error::no_error:
|
||||||
handle_error(ec, h);
|
case i2p_error::invalid_key:
|
||||||
return;
|
break;
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
error_code ec (result, get_i2p_category ());
|
||||||
|
handle_error (ec, h);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (m_state)
|
switch (m_state)
|
||||||
|
|
Loading…
Reference in New Issue