Fix bug in port closed handling

This commit is contained in:
TuxSH 2019-03-26 23:15:37 +01:00
parent e2ed200509
commit 4a431b8fdf

View File

@ -159,11 +159,12 @@ int main(void)
{
sessionData->replayCmdbuf[1] = 0xD0406401; // unregistered service or named port
moveNode(sessionData, &sessionDataWaitingForServiceOrPortRegisterList, true);
svcCloseHandle(handles[id]);
handles[id] = handles[--nbHandles];
sessionData->busyClientPortHandle = 0;
}
}
svcCloseHandle(handles[id]);
handles[id] = handles[--nbHandles];
}
replyTarget = 0;