fixed test_upnp
This commit is contained in:
parent
a49cb42345
commit
14b49a08ee
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue