(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>
|
#include <net/net_natt.h>
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#ifdef _WIN32
|
||||||
#include <iphlpapi.h>
|
#include <iphlpapi.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -631,9 +631,7 @@ static void natt_close_port_cb(retro_task_t *task, void *task_data,
|
||||||
if (data->status != 200)
|
if (data->status != 200)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
/* We don't need to do anything special here.
|
/* We don't need to do anything special here. */
|
||||||
* Just clear up the request. */
|
|
||||||
memset(request, 0, sizeof(*request));
|
|
||||||
request->success = true;
|
request->success = true;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
|
@ -254,6 +254,8 @@ static void task_netplay_nat_traversal_handler(retro_task_t *task)
|
||||||
|
|
||||||
case NAT_TRAVERSAL_STATUS_CLOSING:
|
case NAT_TRAVERSAL_STATUS_CLOSING:
|
||||||
{
|
{
|
||||||
|
memset(&data->request, 0, sizeof(data->request));
|
||||||
|
|
||||||
data->status = NAT_TRAVERSAL_STATUS_CLOSED;
|
data->status = NAT_TRAVERSAL_STATUS_CLOSED;
|
||||||
|
|
||||||
goto finished;
|
goto finished;
|
||||||
|
|
Loading…
Reference in New Issue