[CalendarServer-changes] [9571] CalendarServer/branches/users/glyph/q

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 11 01:54:18 PDT 2012


Revision: 9571
          http://trac.macosforge.org/projects/calendarserver/changeset/9571
Author:   glyph at apple.com
Date:     2012-08-11 01:54:18 -0700 (Sat, 11 Aug 2012)
Log Message:
-----------
still a failure, and this should be tested, but at least this is at least a cleaner/faster/clearer failure.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/q/twext/internet/threadutils.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/q/

Modified: CalendarServer/branches/users/glyph/q/twext/internet/threadutils.py
===================================================================
--- CalendarServer/branches/users/glyph/q/twext/internet/threadutils.py	2012-08-11 08:54:17 UTC (rev 9570)
+++ CalendarServer/branches/users/glyph/q/twext/internet/threadutils.py	2012-08-11 08:54:18 UTC (rev 9571)
@@ -90,6 +90,8 @@
 
         @return: L{Deferred} that fires with the result of L{work}
         """
+        if self._state != _STATE_RUNNING:
+            raise RuntimeError("not running")
         d = Deferred()
         self._q.put((d, work))
         return d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120811/62bec2f6/attachment-0001.html>


More information about the calendarserver-changes mailing list