Clean up ConnectToPeer
This commit is contained in:
parent
0ecc6e34b9
commit
6f30fd0cb0
@ -37,7 +37,6 @@ ConnectToPeer::ConnectToPeer(uint32_t peer_id) : Protocol(PROTOCOL_CONNECTION)
|
|||||||
m_peer_address.clear();
|
m_peer_address.clear();
|
||||||
m_peer_id = peer_id;
|
m_peer_id = peer_id;
|
||||||
m_state = NONE;
|
m_state = NONE;
|
||||||
m_is_lan = false;
|
|
||||||
} // ConnectToPeer(peer_id)
|
} // ConnectToPeer(peer_id)
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@ -51,7 +50,6 @@ ConnectToPeer::ConnectToPeer(const TransportAddress &address)
|
|||||||
// We don't need to find the peer address, so we can start
|
// We don't need to find the peer address, so we can start
|
||||||
// with the state when we found the peer address.
|
// with the state when we found the peer address.
|
||||||
m_state = WAIT_FOR_CONNECTION;
|
m_state = WAIT_FOR_CONNECTION;
|
||||||
m_is_lan = true;
|
|
||||||
} // ConnectToPeers(TransportAddress)
|
} // ConnectToPeers(TransportAddress)
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@ -39,9 +39,6 @@ protected:
|
|||||||
* gone. */
|
* gone. */
|
||||||
std::shared_ptr<Protocol> m_current_protocol;
|
std::shared_ptr<Protocol> m_current_protocol;
|
||||||
|
|
||||||
/** True if this is a LAN connection. */
|
|
||||||
bool m_is_lan;
|
|
||||||
|
|
||||||
/** Timer use for tracking broadcast. */
|
/** Timer use for tracking broadcast. */
|
||||||
double m_timer = 0.0;
|
double m_timer = 0.0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user