Start removing bad coreState checks

This commit is contained in:
Henrik Rydgård committed 2025-04-05 09:18:56 +02:00
1 parent f573b0c72c
commit ebfc467d5d
3 files changed
+3 -12

No files matched your search

+2 -3
View File
@@ -469,13 +469,12 @@ bool PortManager::RefreshPortList() {
#endif // WITH_UPNP
}
int upnpService(const unsigned int timeout)
{
int upnpService(const unsigned int timeout) {
SetCurrentThreadName("UPnPService");
INFO_LOG(Log::sceNet, "UPnPService: Begin of UPnPService Thread");
// Service Loop
while (upnpServiceRunning && coreState != CORE_POWERDOWN) {
while (upnpServiceRunning) {
// Sleep for 1ms for faster response if active, otherwise sleep longer (TODO: Improve on this).
sleep_ms(g_Config.bEnableUPnP ? 1 : 100, "upnp-poll");