fix error reporting for enum_net_interfaces

This commit is contained in:
arvidn 2017-05-22 23:44:00 -04:00 committed by Arvid Norberg
parent a985773f4b
commit 432131e493
1 changed files with 1 additions and 2 deletions

View File

@ -426,10 +426,9 @@ namespace libtorrent
{
TORRENT_UNUSED(ios); // this may be unused depending on configuration
std::vector<ip_interface> ret;
ec.clear();
#if defined TORRENT_BUILD_SIMULATOR
TORRENT_UNUSED(ec);
std::vector<address> ips = ios.get_ips();
for (int i = 0; i < int(ips.size()); ++i)