Removed NetworkManager::isConnectedTO

This commit is contained in:
hiker 2015-10-26 18:31:32 +11:00
parent d45d5a1051
commit b788aa6e95
2 changed files with 1 additions and 7 deletions

View File

@ -66,12 +66,6 @@ public:
// raw data management
// getters
// --------------------------------------------------------------------
virtual bool isConnectedTo(const TransportAddress& peer)
{
return STKHost::get()->isConnectedTo(peer);
} // isConnectedTo
// --------------------------------------------------------------------
inline bool isClient() { return !isServer(); }

View File

@ -225,7 +225,7 @@ void ClientLobbyRoomProtocol::update()
switch (m_state)
{
case NONE:
if (NetworkManager::getInstance()->isConnectedTo(m_server_address))
if (STKHost::get()->isConnectedTo(m_server_address))
{
m_state = LINKED;
}