Commit b60213ff authored by Jeremy Hylton's avatar Jeremy Hylton

Clear up comment inside _do_async_loop() and assert that lock is not held.

parent 87b49138
......@@ -323,8 +323,8 @@ class Connection(smac.SizedMessageAsyncConnection):
self.__reply_lock.acquire()
# wait until reply...
else:
# Do loop only if lock is already acquired. XXX But can't
# we already guarantee that the lock is already acquired?
# Do loop until asyncore handler unlocks the lock.
assert not self.__reply_lock.acquire(0)
while not self.__reply_lock.acquire(0):
try:
asyncore.poll(10.0, self._map)
......
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