Permalink
Browse files

+weakref.proxy(self)

  • Loading branch information...
1 parent 39bf7da commit 774cd8c103474794315e3b121b04872dc99eab50 @evilkost committed Apr 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 brukva/client.py
View
@@ -5,6 +5,7 @@
import contextlib
import logging
from collections import Iterable
+import weakref
from tornado.ioloop import IOLoop
from tornado.iostream import IOStream
@@ -234,7 +235,7 @@ def __init__(self, host='localhost', port=6379, password=None, reconnect=False,
self._io_loop = io_loop or IOLoop.instance()
self.connection = Connection(host, port, self.on_reconnect, io_loop=self._io_loop)
- self.async = _AsyncWrapper(self)
+ self.async = _AsyncWrapper(weakref.proxy(self))
self.queue = []
self.current_cmd_line = None
self.subscribed = False

0 comments on commit 774cd8c

Please sign in to comment.