mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 00:38:17 -05:00
core/bsd: Correctly unbind methods in destructor
Prevents yuzu from crashing when the BSD service is created a second time.
This commit is contained in:
@ -933,7 +933,11 @@ BSD::BSD(Core::System& system_, const char* name)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BSD::~BSD() = default;
|
BSD::~BSD() {
|
||||||
|
if (auto room_member = room_network.GetRoomMember().lock()) {
|
||||||
|
room_member->Unbind(proxy_packet_received);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
BSDCFG::BSDCFG(Core::System& system_) : ServiceFramework{system_, "bsdcfg"} {
|
BSDCFG::BSDCFG(Core::System& system_) : ServiceFramework{system_, "bsdcfg"} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
Reference in New Issue
Block a user