Update of /cvsroot/mahogany/M/src/classes
In directory usw-pr-cvs1:/tmp/cvs-serv23614/src/classes
Modified Files:
FolderMonitor.cpp
Log Message:
1. Update 'time for next check for new mail' iff there was actually a check,
otherwise we could always reset the timer and never check.
2. Consider that if times are equal, we can check.
Index: FolderMonitor.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/FolderMonitor.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -b -u -2 -r1.16 -r1.17
--- FolderMonitor.cpp 7 May 2002 20:16:40 -0000 1.16
+++ FolderMonitor.cpp 21 May 2002 11:34:02 -0000 1.17
@@ -476,21 +476,17 @@
// force the check now if it was done by the user, even if the timeout
// hasn't expired yet
- if ( (flags & Interactive) || (i->GetCheckTime() < timeCur) )
+ if ( (flags & Interactive) || (i->GetCheckTime() <= timeCur) )
{
if ( !CheckOneFolder(*i, progInfo) )
rc = false;
- }
- //else: don't check this folder yet
- }
-
- delete progInfo;
-
// update the time of the next check only now, i.e. after CheckFolder() call
// as if it takes time longer than the check interval we might keep checking
// it all the time without doing anything else
- for ( i = m_list.begin(); i != m_list.end(); ++i )
- {
i->UpdateCheckTime();
}
+ //else: don't check this folder yet
+ }
+
+ delete progInfo;
return rc;
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates