Merge pull request #13970 from Cthulhu-throwaway/upnp-fix

(Netplay/UPnP) Stability Issue
This commit is contained in:
LibretroAdmin 2022-05-25 17:45:27 +01:00 committed by GitHub
commit 37a17df182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,9 +140,9 @@ done:
static void task_netplay_nat_traversal_handler(retro_task_t *task)
{
static struct natt_discovery discovery = {-1};
static struct natt_discovery discovery = {-1, -1};
static struct natt_device device = {0};
struct nat_traversal_data *data = (struct nat_traversal_data*)task->task_data;
struct nat_traversal_data *data = (struct nat_traversal_data*)task->task_data;
/* Try again on the next call. */
if (device.busy)