Skip to content
Permalink
Browse files

Core/NetPlayServer: Fix empty error messages when adding session to t…

…he index fails
  • Loading branch information...
spycrab committed Jun 20, 2019
1 parent 84b9b37 commit d68f62c0f5d27e785832d49baf8232d2418e3841
Showing with 4 additions and 1 deletion.
  1. +4 −1 Source/Core/Core/NetPlayServer.cpp
@@ -206,7 +206,10 @@ void NetPlayServer::SetupIndex()
session.EncryptID(Config::Get(Config::NETPLAY_INDEX_PASSWORD));

if (m_dialog != nullptr)
m_dialog->OnIndexAdded(m_index.Add(session), m_index.GetLastError());
{
bool success = m_index.Add(session);
m_dialog->OnIndexAdded(success, success ? "" : m_index.GetLastError());
}

m_index.SetErrorCallback([this] {
if (m_dialog != nullptr)

0 comments on commit d68f62c

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