mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Only disable netplay in deinit_netplay if it was actually on
This commit is contained in:
parent
d0f3973ea5
commit
12e8deedb4
@ -883,9 +883,11 @@ bool netplay_disconnect(netplay_t *netplay)
|
||||
void deinit_netplay(void)
|
||||
{
|
||||
if (netplay_data)
|
||||
{
|
||||
netplay_free(netplay_data);
|
||||
netplay_enabled = false;
|
||||
}
|
||||
netplay_data = NULL;
|
||||
netplay_enabled = false;
|
||||
core_unset_netplay_callbacks();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user