mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
(UPnP) Minor refactor (#13510)
Don't clear up the request at natt_close_port.
This commit is contained in:
parent
979428649a
commit
c50087efdc
@ -37,7 +37,7 @@
|
||||
|
||||
#include <net/net_natt.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
#ifdef _WIN32
|
||||
#include <iphlpapi.h>
|
||||
#endif
|
||||
|
||||
@ -631,9 +631,7 @@ static void natt_close_port_cb(retro_task_t *task, void *task_data,
|
||||
if (data->status != 200)
|
||||
goto done;
|
||||
|
||||
/* We don't need to do anything special here.
|
||||
* Just clear up the request. */
|
||||
memset(request, 0, sizeof(*request));
|
||||
/* We don't need to do anything special here. */
|
||||
request->success = true;
|
||||
|
||||
done:
|
||||
|
@ -254,6 +254,8 @@ static void task_netplay_nat_traversal_handler(retro_task_t *task)
|
||||
|
||||
case NAT_TRAVERSAL_STATUS_CLOSING:
|
||||
{
|
||||
memset(&data->request, 0, sizeof(data->request));
|
||||
|
||||
data->status = NAT_TRAVERSAL_STATUS_CLOSED;
|
||||
|
||||
goto finished;
|
||||
|
Loading…
x
Reference in New Issue
Block a user