mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
Add better error handling for RequestSignalingInfos
This commit is contained in:
parent
f7a3d45c2c
commit
450cb1771c
1 changed files with 16 additions and 0 deletions
|
@ -572,6 +572,22 @@ namespace np
|
||||||
pending_sign_infos_requests.erase(req_id);
|
pending_sign_infos_requests.erase(req_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rpcn::is_error(static_cast<rpcn::ErrorType>(reply_data[0])))
|
||||||
|
{
|
||||||
|
switch (reply_data[0])
|
||||||
|
{
|
||||||
|
case rpcn::ErrorType::NotFound:
|
||||||
|
{
|
||||||
|
rpcn_log.error("Signaling information was requested for a user that doesn't exist or is not online");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
case rpcn::ErrorType::Malformed:
|
||||||
|
return error_and_disconnect("RequestSignalingInfos request was malformed!");
|
||||||
|
default:
|
||||||
|
return error_and_disconnect(fmt::format("RequestSignalingInfos failed with unknown error(%d)!", reply_data[0]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
vec_stream reply(reply_data, 1);
|
vec_stream reply(reply_data, 1);
|
||||||
u32 addr = reply.get<u32>();
|
u32 addr = reply.get<u32>();
|
||||||
u16 port = reply.get<u16>();
|
u16 port = reply.get<u16>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue