mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-11-13 17:48:51 +01:00
DSU: Fix inverted socket validity check
This commit is contained in:
1 parent
b487cb70ed
commit
6fffb09b2a
1 file changed
+1
-1
@@ -77,7 +77,7 @@ static sockaddr_in MakeAddress(SocketIPv4 ip, uint16 port)
|
||||
UDPSocket::UDPSocket()
|
||||
{
|
||||
m_socket = static_cast<std::intptr_t>(socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP));
|
||||
if (IsValid())
|
||||
if (!IsValid())
|
||||
Close();
|
||||
SetSocketSettings(Native(m_socket));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user