summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/Processor.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-27 23:45:45 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-27 23:45:45 +0200
commit0c1a92dcfa6d9775d5d0da8ef5fc8d9cc40d77b9 (patch)
tree0fb4ed212d1e9e8d48c30d69644a774eb2424b23 /module/remote/thriftbackend/Processor.py
parentlittle cli improvement (diff)
downloadpyload-0c1a92dcfa6d9775d5d0da8ef5fc8d9cc40d77b9.tar.xz
thrift 0.7.0 from trunk, patched for low mem usage
Diffstat (limited to 'module/remote/thriftbackend/Processor.py')
-rw-r--r--module/remote/thriftbackend/Processor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/remote/thriftbackend/Processor.py b/module/remote/thriftbackend/Processor.py
index cd7e81a91..8ea45f109 100644
--- a/module/remote/thriftbackend/Processor.py
+++ b/module/remote/thriftbackend/Processor.py
@@ -13,7 +13,8 @@ class Processor(Pyload.Processor):
self.authenticated[trans] = False
oldclose = trans.close
def wrap():
- del self.authenticated[trans]
+ if self.authenticated.has_key(self):
+ del self.authenticated[trans]
oldclose()
trans.close = wrap
authenticated = self.authenticated[trans]