소스 검색

Kernel/Sessions: Clean up the list of pending request threads of a session when the client endpoint is closed.

Subv 9 년 전
부모
커밋
c3c9175a1c
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/core/hle/kernel/client_session.cpp

+ 5 - 0
src/core/hle/kernel/client_session.cpp

@@ -27,6 +27,11 @@ ClientSession::~ClientSession() {
 
         // TODO(Subv): Force a wake up of all the ServerSession's waiting threads and set
         // 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;