mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
3cf9d9b955
commit
c87efec81b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user