[CalendarServer-changes] [1041]
CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jan 12 12:58:30 PST 2007
Revision: 1041
http://trac.macosforge.org/projects/calendarserver/changeset/1041
Author: cdaboo at apple.com
Date: 2007-01-12 12:58:30 -0800 (Fri, 12 Jan 2007)
Log Message:
-----------
Fix exception during directory cache refresh.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py
Modified: CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py 2007-01-12 19:49:16 UTC (rev 1040)
+++ CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py 2007-01-12 20:58:30 UTC (rev 1041)
@@ -169,9 +169,13 @@
def rot():
storage["status"] = "stale"
+ removals = set()
for call in self._delayedCalls:
if not call.active():
- self._delayedCalls.remove(call)
+ removals.add(call)
+ for item in removals:
+ self._delayedCalls.remove(item)
+
self._delayedCalls.add(callLater(recordListCacheTimeout, rot))
self._records[recordType] = storage
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070112/bf22bb48/attachment.html
More information about the calendarserver-changes
mailing list