Code simplification and suppression of a bug in handling Relay connect attempt (Patch rom G10H4ck)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7820 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-01-05 19:34:43 +00:00
parent 306d6852c2
commit 4704cc122d
2 changed files with 3 additions and 13 deletions

View file

@ -783,7 +783,7 @@ uint32_t PeerConnectStateBox::updateCb(uint32_t update)
{
case CSB_UPDATE_CONNECTED:
{
if ((mState == CSB_DIRECT_ATTEMPT) || (mState == CSB_PROXY_ATTEMPT) || (mState == CSB_PROXY_ATTEMPT))
if ((mState == CSB_DIRECT_ATTEMPT) || (mState == CSB_PROXY_ATTEMPT) || (mState == CSB_RELAY_ATTEMPT))
{
mAttemptLength = now - mStateTS;
}