mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 11:43:47 +01:00
Start removing bad coreState checks
This commit is contained in:
1 parent
f573b0c72c
commit
ebfc467d5d
3 files changed
+3
-12
No files matched your search
@@ -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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user