mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Core/NetPlayServer: Fix empty error messages when adding session to the index fails
This commit is contained in:
parent
84b9b37fef
commit
d68f62c0f5
@ -206,7 +206,10 @@ void NetPlayServer::SetupIndex()
|
|||||||
session.EncryptID(Config::Get(Config::NETPLAY_INDEX_PASSWORD));
|
session.EncryptID(Config::Get(Config::NETPLAY_INDEX_PASSWORD));
|
||||||
|
|
||||||
if (m_dialog != nullptr)
|
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] {
|
m_index.SetErrorCallback([this] {
|
||||||
if (m_dialog != nullptr)
|
if (m_dialog != nullptr)
|
||||||
|
Loading…
Reference in New Issue
Block a user