Skip to content

Commit

Permalink
GameConnection::connect: do not show dialogs on fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
stgatilov committed Jul 31, 2021
1 parent 3e147ae commit ea617c9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/dm.gameconnection/GameConnection.cpp
Expand Up @@ -181,17 +181,13 @@ bool GameConnection::connect() {
|| !connection->SetNonblocking()
|| !connection->Open(DEFAULT_HOST, DEFAULT_PORT))
{
showError(_("Failed to connect to game process"));
return false;
}

_connection.reset(new MessageTcp());
_connection->init(std::move(connection));
if (!_connection->isAlive())
{
showError(_("Failed to connect to game process"));
return false;
}

_thinkTimer.reset(new wxTimer());
_thinkTimer->Bind(wxEVT_TIMER, &GameConnection::onTimerEvent, this);
Expand Down

0 comments on commit ea617c9

Please sign in to comment.