Fix for UDP relay deadlock... not tested

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7393 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2014-06-01 01:16:34 +00:00
parent 3cf9d9b955
commit c87efec81b

View File

@ -569,11 +569,11 @@ int pqissl::Delay_Connection()
{
waiting = WAITING_DELAY;
/* set delay */
if (mConnectDelay == 0)
{
return Initiate_Connection();
}
/* we cannot just jump to Initiate_Connection,
* but must switch to WAITING_DELAY for at least one cycle.
* to avoid deadlock between threads....
* ie. so the connection stuff is called from tick(), rather than connect()
*/
/* set Connection TS.
*/
@ -597,8 +597,7 @@ int pqissl::Delay_Connection()
rslog(RSL_DEBUG_BASIC, pqisslzone, out);
}
#endif
if (time(NULL) > mConnectTS)
if (time(NULL) >= mConnectTS)
{
return Initiate_Connection();
}