mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-21 18:55:16 +00:00
Prevent udp error from killing tcp connection
This commit is contained in:
parent
efef24fbbe
commit
78b532a316
1 changed files with 2 additions and 3 deletions
|
@ -139,10 +139,9 @@ s32 SocketClient::setPeerUdpPort(u16 port) {
|
||||||
this->mUdpAddress.port = net_port;
|
this->mUdpAddress.port = net_port;
|
||||||
|
|
||||||
nn::Result result;
|
nn::Result result;
|
||||||
if((result = nn::socket::Connect(this->ket, &this->mUdpAddress, sizeof(this->mUdpAddress))).isFailure()) {
|
if((result = nn::socket::Connect(this->mUdpSocket, &this->mUdpAddress, sizeof(this->mUdpAddress))).isFailure()) {
|
||||||
Logger::log("Udp Socket Connection Failed!\n");
|
Logger::log("Udp socket connection failed to connect to port %d!\n", port);
|
||||||
this->socket_errno = nn::socket::GetLastErrno();
|
this->socket_errno = nn::socket::GetLastErrno();
|
||||||
this->socket_log_state = SOCKET_LOG_UNAVAILABLE;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue