diff --git a/src/network/protocols/server_lobby.cpp b/src/network/protocols/server_lobby.cpp index 2d0600d43..bf04df2c3 100644 --- a/src/network/protocols/server_lobby.cpp +++ b/src/network/protocols/server_lobby.cpp @@ -604,8 +604,6 @@ void ServerLobby::handleChat(Event* event) STKHost::get()->sendPacketToAllPeersWith( [game_started, sender_in_game](STKPeer* p) { - if (!p->isValidated()) - return false; if (game_started) { if (p->isWaitingForGame() && !sender_in_game) diff --git a/src/network/stk_host.cpp b/src/network/stk_host.cpp index d8bc16aca..ea576f599 100644 --- a/src/network/stk_host.cpp +++ b/src/network/stk_host.cpp @@ -1269,6 +1269,8 @@ void STKHost::sendPacketToAllPeersWith(std::function predicate, for (auto p : m_peers) { STKPeer* stk_peer = p.second.get(); + if (!stk_peer->isValidated()) + continue; if (predicate(stk_peer)) stk_peer->sendPacket(data, reliable); }