Kaydet (Commit) 33635b4d authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS l10nonemore (1.5.32); FILE MERGED

2005/04/12 08:59:46 gh 1.5.32.2: #i46312# wait between connect attempts
2005/04/12 08:59:09 gh 1.5.32.1: #i46312 wait between connect attempts
üst 4695c9a8
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: tcommuni.cxx,v $ * $RCSfile: tcommuni.cxx,v $
* *
* $Revision: 1.5 $ * $Revision: 1.6 $
* *
* last change: $Author: rt $ $Date: 2004-09-20 12:26:10 $ * last change: $Author: obo $ $Date: 2005-04-18 13:47:27 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
#ifndef _VOS_PROCESS_HXX_ #ifndef _VOS_PROCESS_HXX_
#include <vos/process.hxx> #include <vos/process.hxx>
#endif #endif
#include <vcl/timer.hxx>
#ifndef _BASIC_TTRESHLP_HXX #ifndef _BASIC_TTRESHLP_HXX
#include <basic/ttstrhlp.hxx> #include <basic/ttstrhlp.hxx>
...@@ -138,8 +139,11 @@ BOOL CommunicationManagerClientViaSocketTT::RetryConnect() ...@@ -138,8 +139,11 @@ BOOL CommunicationManagerClientViaSocketTT::RetryConnect()
{ {
if ( aFirstRetryCall > Time() ) if ( aFirstRetryCall > Time() )
{ {
for ( int i = 10 ; i-- ; ) Timer aWait;
GetpApp()->Reschedule(); aWait.SetTimeout( 500 ); // Max 500 mSec
aWait.Start();
while ( aWait.IsActive() )
GetpApp()->Yield();
return TRUE; return TRUE;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment