From e00ef98491f79ae8aa972ae1473dae4a7b78c07e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 17:20:59 +0200 Subject: Cleanup --- pyload/remote/thriftbackend/Processor.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pyload/remote/thriftbackend/Processor.py') diff --git a/pyload/remote/thriftbackend/Processor.py b/pyload/remote/thriftbackend/Processor.py index 683697d1c..24a0c05b6 100644 --- a/pyload/remote/thriftbackend/Processor.py +++ b/pyload/remote/thriftbackend/Processor.py @@ -3,16 +3,19 @@ from pyload.remote.thriftbackend.thriftgen.pyload import Pyload class Processor(Pyload.Processor): + def __init__(self, *args, **kwargs): Pyload.Processor.__init__(self, *args, **kwargs) self.authenticated = {} + def process(self, iprot, oprot): trans = oprot.trans if trans not in self.authenticated: self.authenticated[trans] = False oldclose = trans.close + def wrap(): if self in self.authenticated: del self.authenticated[trans] -- cgit v1.2.3