From 0c1a92dcfa6d9775d5d0da8ef5fc8d9cc40d77b9 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 27 Jun 2011 23:45:45 +0200 Subject: thrift 0.7.0 from trunk, patched for low mem usage --- module/remote/thriftbackend/Processor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'module/remote/thriftbackend/Processor.py') 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] -- cgit v1.2.3