mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-16 01:17:56 -05:00
kernel: Fix reference management for client/server session.
- Fixes shutdown crash and crash in Pokemon SwSh.
This commit is contained in:
@ -20,8 +20,8 @@ class ServerSession;
|
||||
*/
|
||||
class Session final {
|
||||
public:
|
||||
ClientSession* client = nullptr; ///< The client endpoint of the session.
|
||||
ServerSession* server = nullptr; ///< The server endpoint of the session.
|
||||
std::weak_ptr<ClientSession> client; ///< The client endpoint of the session.
|
||||
std::weak_ptr<ServerSession> server; ///< The server endpoint of the session.
|
||||
std::shared_ptr<ClientPort> port; ///< The port that this session is associated with (optional).
|
||||
};
|
||||
} // namespace Kernel
|
||||
|
Reference in New Issue
Block a user