mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
Merge pull request #544 from i404788/master
Fix hanging UI when `null` addr
This commit is contained in:
commit
2944575cbc
@ -262,8 +262,14 @@ bool Init(bool open_adapter)
|
||||
curaddr = curaddr->ifa_next;
|
||||
continue;
|
||||
}
|
||||
if (!curaddr->ifa_addr) continue;
|
||||
|
||||
if (!curaddr->ifa_addr)
|
||||
{
|
||||
printf("Device (%s) does not have an address :/\n", curaddr->ifa_name);
|
||||
curaddr = curaddr->ifa_next;
|
||||
continue;
|
||||
}
|
||||
|
||||
u16 af = curaddr->ifa_addr->sa_family;
|
||||
if (af == AF_INET)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user