mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 17:04:37 +02:00
Compress a for loop in NetPlayServer.
Also gets rid of a redundant return from a void function.
This commit is contained in:
@@ -114,15 +114,8 @@ void NetPlayServer::ThreadFunc()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// close listening socket and client sockets
|
// close listening socket and client sockets
|
||||||
{
|
for (auto& player_entry : m_players)
|
||||||
std::map<sf::SocketTCP, Client>::reverse_iterator
|
player_entry.second.socket.Close();
|
||||||
i = m_players.rbegin(),
|
|
||||||
e = m_players.rend();
|
|
||||||
for ( ; i!=e; ++i)
|
|
||||||
i->second.socket.Close();
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// called from ---NETPLAY--- thread
|
// called from ---NETPLAY--- thread
|
||||||
|
Reference in New Issue
Block a user