Updated udsConnectNetwork() to handle failure from the network-connection command properly, and removed the commented prints.
This commit is contained in:
parent
a653c49aaa
commit
6606a77719
@ -267,11 +267,9 @@ Result udsConnectNetwork(const udsNetworkStruct *network, const void *passphrase
|
||||
|
||||
if(connection_type==UDSCONTYPE_Spectator)spectator=true;
|
||||
|
||||
//printf("connecting...\n");//Removing these prints caused connecting to fail.
|
||||
ret = udsipc_ConnectToNetwork(network, passphrase, passphrase_size, connection_type);
|
||||
if(R_FAILED(ret))return ret;
|
||||
//printf("bind...\n");
|
||||
if(context)ret = udsBind(context, recv_NetworkNodeID, spectator, data_channel);
|
||||
|
||||
if(R_SUCCEEDED(ret) && context)ret = udsBind(context, recv_NetworkNodeID, spectator, data_channel);
|
||||
|
||||
if(R_FAILED(ret))udsDisconnectNetwork();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user