mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-29 06:03:28 +00:00
init_udp_socket - cleanups
This commit is contained in:
parent
b979af0a8c
commit
3d7b7f6afa
@ -762,10 +762,7 @@ static bool init_udp_socket(netplay_t *netplay, const char *server,
|
||||
netplay->udp_fd = socket_init((void**)&netplay->addr, port, server, SOCKET_TYPE_DATAGRAM);
|
||||
|
||||
if (netplay->udp_fd < 0)
|
||||
{
|
||||
RARCH_ERR("Failed to initialize socket.\n");
|
||||
return false;
|
||||
}
|
||||
goto error;
|
||||
|
||||
if (!server)
|
||||
{
|
||||
@ -782,6 +779,10 @@ static bool init_udp_socket(netplay_t *netplay, const char *server,
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
error:
|
||||
RARCH_ERR("Failed to initialize socket.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool init_socket(netplay_t *netplay, const char *server, uint16_t port)
|
||||
|
Loading…
Reference in New Issue
Block a user