core: fix pollfds hup check loop

This commit is contained in:
Vaxry 2023-10-14 11:56:42 +01:00
parent 60af24a70d
commit d8daa2a84f
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ void CPortalManager::startEventLoop() {
}
for (size_t i = 0; i < 3; ++i) {
if (pollfds[0].revents & POLLHUP) {
if (pollfds[i].revents & POLLHUP) {
Debug::log(CRIT, "[core] Disconnected from pollfd id {}", i);
g_pPortalManager->terminate();
}