From 71be8621418dbd6edc25e89bd04e52ebe91ae535 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Mon, 11 Mar 2024 00:01:42 +0100 Subject: [PATCH] try 0 duration --- src/solanaceae/tox_upnp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/solanaceae/tox_upnp.cpp b/src/solanaceae/tox_upnp.cpp index 450ff1a..58602b9 100644 --- a/src/solanaceae/tox_upnp.cpp +++ b/src/solanaceae/tox_upnp.cpp @@ -18,10 +18,10 @@ ToxUPnP::ToxUPnP(ToxI& tox) { // start upnp thread _thread = std::thread([this](void) { - int seconds_since_last {60*10}; + int seconds_since_last {60*60}; bool last_mapping_succ {false}; while (!_quit) { - if (seconds_since_last < 60*10) { + if (seconds_since_last < 60*60) { std::this_thread::sleep_for(std::chrono::seconds(1)); seconds_since_last++; continue; @@ -69,7 +69,8 @@ ToxUPnP::ToxUPnP(ToxI& tox) { "Tomato UPnP Tox UDP port forwarding", "UDP", nullptr, - "900" // lease duration in seconds + //"900" // lease duration in seconds + "0" ); if (map_ret != UPNPCOMMAND_SUCCESS) {