Skip to content
Permalink
Browse files

Merge pull request #7979 from Techjar/netplay-browser-possible-crash

UICommon/NetPlayIndex: Fix possible crash when Add is called again
  • Loading branch information...
spycrab committed Apr 11, 2019
2 parents e8c9644 + f1e06b8 commit f2e3f69d34317c7f4fc1fe4e94d470344dafd1f7
Showing with 5 additions and 0 deletions.
  1. +5 −0 Source/Core/UICommon/NetPlayIndex.cpp
@@ -197,6 +197,11 @@ bool NetPlayIndex::Add(NetPlaySession session)
m_player_count = session.player_count;
m_game = session.game_id;

m_session_thread_exit_event.Set();
if (m_session_thread.joinable())
m_session_thread.join();
m_session_thread_exit_event.Reset();

m_session_thread = std::thread([this] { NotificationLoop(); });

return true;

0 comments on commit f2e3f69

Please sign in to comment.
You can’t perform that action at this time.