fixed test_upnp

This commit is contained in:
Arvid Norberg 2008-01-03 19:03:52 +00:00
parent a49cb42345
commit 14b49a08ee
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ int main(int argc, char* argv[])
connection_queue cc(ios);
boost::intrusive_ptr<upnp> upnp_handler = new upnp(ios, cc, address_v4(), user_agent, &callback);
upnp_handler->discover_device();
deadline_timer timer(ios);
timer.expires_from_now(seconds(2));
@ -43,6 +44,7 @@ int main(int argc, char* argv[])
ios.reset();
ios.run();
std::cerr << "router: " << upnp_handler->router_model() << std::endl;
std::cerr << "removing mappings" << std::endl;
upnp_handler->close();