diff options
author | Ben Bangert <ben@groovie.org> | 2012-08-09 14:52:28 -0700 |
---|---|---|
committer | Ben Bangert <ben@groovie.org> | 2012-08-09 14:52:28 -0700 |
commit | 9cedc30d91dfdd07e2d6acfc2c84216088a69e7a (patch) | |
tree | 139af6d46d29ace43733cbe5fba914a07aae9ce9 | |
parent | c80d8714f88df5127f77a62efb0001562b6226ad (diff) | |
download | kazoo-9cedc30d91dfdd07e2d6acfc2c84216088a69e7a.tar.gz |
Cache the real thread this time.
-rw-r--r-- | kazoo/handlers/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kazoo/handlers/util.py b/kazoo/handlers/util.py index c48eae4..e641cb1 100644 --- a/kazoo/handlers/util.py +++ b/kazoo/handlers/util.py @@ -16,7 +16,8 @@ def get_realthread(): import imp fp, pathname, description = imp.find_module('thread') try: - return imp.load_module('realthread', fp, pathname, description) + _realthread = imp.load_module('realthread', fp, pathname, description) + return _realthread finally: if fp: fp.close() |