mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-30 10:47:17 +00:00
(fix) make sure we don't sleep for too long when EAS processes need interruption
This commit is contained in:
@@ -2393,8 +2393,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
}
|
||||
else
|
||||
{
|
||||
int t;
|
||||
|
||||
[self logWithFormat: @"Sleeping %d seconds while detecting changes in Sync...", internalInterval-total_sleep];
|
||||
sleep(sleepInterval);
|
||||
|
||||
for (t = 0; t < sleepInterval; t++)
|
||||
{
|
||||
if ([self easShouldTerminate])
|
||||
break;
|
||||
sleep(1);
|
||||
}
|
||||
total_sleep += sleepInterval;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user