Skip to content
Browse files

Fixed a bug where chains could exceed maximum recursion limit

Bug was introduced in my attempted bug fix for large queries.
  • Loading branch information...
1 parent fbc8b89 commit 383e3d8001959914991dfa056a452b6a049fc1e1 @stevearc stevearc committed Sep 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 momoko/
2 momoko/
@@ -330,7 +330,7 @@ def _io_callback(self, fd, events):
if state == psycopg2.extensions.POLL_OK:
for callback in self._callbacks:
- callback()
+ self._ioloop.add_callback(callback)
elif state == psycopg2.extensions.POLL_READ:
self._ioloop.update_handler(self._fileno, IOLoop.READ)
elif state == psycopg2.extensions.POLL_WRITE:

0 comments on commit 383e3d8

Please sign in to comment.
Something went wrong with that request. Please try again.