sys_net: Anti-log spam enhancement

This commit is contained in:
Eladash 2021-09-04 10:27:40 +03:00 committed by Megamouse
parent ea2c5294df
commit fe0c164de2

View File

@ -3444,7 +3444,15 @@ error_code sys_net_bnet_select(ppu_thread& ppu, s32 nfds, vm::ptr<sys_net_fd_set
if (exceptfds)
{
sys_net.error("sys_net_bnet_select(): exceptfds not implemented");
struct log_t
{
atomic_t<bool> logged = false;
};
if (!g_fxo->get<log_t>().logged.exchange(true))
{
sys_net.error("sys_net_bnet_select(): exceptfds not implemented");
}
}
sys_net_fd_set rread{}, _readfds{};