1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

Fix possible crash in boost exception handling

This commit is contained in:
Christophe Dumez 2010-03-29 10:43:56 +00:00
parent d639712303
commit 492814a56e

View File

@ -84,8 +84,9 @@ protected:
if(stopped) return; if(stopped) return;
libtorrent::asio::ip::tcp::endpoint endpoint = *it; libtorrent::asio::ip::tcp::endpoint endpoint = *it;
emit ip_resolved(misc::toQString(endpoint.address().to_string()), misc::toQString((*it).host_name())); emit ip_resolved(misc::toQString(endpoint.address().to_string()), misc::toQString((*it).host_name()));
} catch(std::exception &e) { } catch(std::exception/* &e*/) {
std::cerr << "Hostname resolution failed, reason: " << e.what() << std::endl; /*std::cerr << "Hostname resolution failed, reason: " << e.what() << std::endl;*/
std::cerr << "Hostname resolution error." << std::endl;
} }
} }
}; };