avoid really obvious/brainfart reference loop.  found by andrew bennetts
This commit is contained in:
Robey Pointer 2006-02-08 19:01:12 -08:00
parent 619192814d
commit 27ccd56af7
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ L{AuthHandler}
""" """
import threading import threading
import weakref
# this helps freezing utils # this helps freezing utils
import encodings.utf_8 import encodings.utf_8
@ -38,7 +39,7 @@ class AuthHandler (object):
""" """
def __init__(self, transport): def __init__(self, transport):
self.transport = transport self.transport = weakref.proxy(transport)
self.username = None self.username = None
self.authenticated = False self.authenticated = False
self.auth_event = None self.auth_event = None