fix alert_mask in bt-get.cpp

This commit is contained in:
arvidn 2018-01-28 01:34:18 +01:00 committed by Arvid Norberg
parent fa03cbea9b
commit eeca133dd7
1 changed files with 4 additions and 1 deletions

View File

@ -47,7 +47,10 @@ int main(int argc, char const* argv[])
std::cerr << "usage: " << argv[0] << " <magnet-url>" << std::endl; std::cerr << "usage: " << argv[0] << " <magnet-url>" << std::endl;
return 1; return 1;
} }
lt::session ses; lt::settings_pack p;
p.set_int(lt::settings_pack::alert_mask, lt::alert::status_notification
| lt::alert::error_notification);
lt::session ses(p);
lt::add_torrent_params atp; lt::add_torrent_params atp;
lt::error_code ec; lt::error_code ec;