mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 17:42:40 -06:00
Kernel/Sessions: Clean up the list of pending request threads of a session when the client endpoint is closed.
This commit is contained in:
parent
88c93a7436
commit
c3c9175a1c
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,11 @@ ClientSession::~ClientSession() {
|
||||||
|
|
||||||
// TODO(Subv): Force a wake up of all the ServerSession's waiting threads and set
|
// TODO(Subv): Force a wake up of all the ServerSession's waiting threads and set
|
||||||
// their WaitSynchronization result to 0xC920181A.
|
// their WaitSynchronization result to 0xC920181A.
|
||||||
|
|
||||||
|
// Clean up the list of client threads with pending requests, they are unneeded now that the
|
||||||
|
// client endpoint is closed.
|
||||||
|
server->pending_requesting_threads.clear();
|
||||||
|
server->currently_handling = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
parent->client = nullptr;
|
parent->client = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue