From 1a3e4508ff319b64e696224581a3c8809f34c9ca Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 22 Aug 2012 18:09:40 +0200 Subject: [PATCH] make using receiver proxy work --- src/common/jingle_ft.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/jingle_ft.py b/src/common/jingle_ft.py index bfb84fb6f..2b1d4e215 100644 --- a/src/common/jingle_ft.py +++ b/src/common/jingle_ft.py @@ -110,9 +110,12 @@ class JingleFileTransfer(JingleContent): def __state_changed(self, nextstate, args=None): # Executes the next state action and sets the next state + current_state = self.state st = self.states[nextstate] st.action(args) - self.state = nextstate + # state can have been changed during the action. Don't go back. + if self.state == current_state: + self.state = nextstate def __on_session_initiate(self, stanza, content, error, action): gajim.nec.push_incoming_event(FileRequestReceivedEvent(None,