mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Merge pull request #4512 from GregorR/netplay-deinit-disable-2
Only disable netplay in deinit_netplay if it was actually on
This commit is contained in:
commit
29b59d8681
@ -883,9 +883,11 @@ bool netplay_disconnect(netplay_t *netplay)
|
|||||||
void deinit_netplay(void)
|
void deinit_netplay(void)
|
||||||
{
|
{
|
||||||
if (netplay_data)
|
if (netplay_data)
|
||||||
|
{
|
||||||
netplay_free(netplay_data);
|
netplay_free(netplay_data);
|
||||||
netplay_data = NULL;
|
|
||||||
netplay_enabled = false;
|
netplay_enabled = false;
|
||||||
|
}
|
||||||
|
netplay_data = NULL;
|
||||||
core_unset_netplay_callbacks();
|
core_unset_netplay_callbacks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user