Skip to content

Commit

Permalink
Do nothing if the same interface gets set twice
Browse files Browse the repository at this point in the history
  • Loading branch information
schellingb authored and LibretroAdmin committed Jun 29, 2023
1 parent 5b1e288 commit 67836c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions network/netplay/netplay_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -9229,6 +9229,10 @@ bool netplay_driver_ctl(enum rarch_netplay_ctl_state state, void *data)

if (net_st->core_netpacket_interface)
{
if (data && !memcmp(net_st->core_netpacket_interface,
data, sizeof(*net_st->core_netpacket_interface)))
break; /* interface is not modified */

free(net_st->core_netpacket_interface);
net_st->core_netpacket_interface = NULL;
}
Expand Down

0 comments on commit 67836c1

Please sign in to comment.