comparison src/core/sat_main.py @ 1644:98a2eb768bb0

core: fixed session cleaning after actionNew timeout
author Goffi <goffi@goffi.org>
date Sun, 22 Nov 2015 21:23:14 +0100
parents 63cef4dbf2a4
children b08b828a87c9
comparison
equal deleted inserted replaced
1643:17f9b911899a 1644:98a2eb768bb0
809 @param profile: %(doc_profile)s 809 @param profile: %(doc_profile)s
810 """ 810 """
811 id_ = unicode(uuid.uuid4()) 811 id_ = unicode(uuid.uuid4())
812 if keep_id is not None: 812 if keep_id is not None:
813 client = self.getClient(profile) 813 client = self.getClient(profile)
814 action_timer = reactor.callLater(60*30, self._killAction) 814 action_timer = reactor.callLater(60*30, self._killAction, keep_id, client)
815 client.actions[keep_id] = (action_data, id_, security_limit, action_timer) 815 client.actions[keep_id] = (action_data, id_, security_limit, action_timer)
816 816
817 self.bridge.actionNew(action_data, id_, security_limit, profile) 817 self.bridge.actionNew(action_data, id_, security_limit, profile)
818 818
819 def actionsGet(self, profile): 819 def actionsGet(self, profile):