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