From 7ae959dbba39d815dd52f6d7a4bba11790ef7ecd Mon Sep 17 00:00:00 2001 From: Thibaut GIRKA Date: Thu, 29 Oct 2009 10:08:22 +0100 Subject: [PATCH] Avoid insane recursion --- src/chat_control.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index 46d49a69f..2873066c9 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1594,7 +1594,10 @@ class ChatControl(ChatControlBase): 'error': self.JINGLE_STATE_ERROR} if state in states: - self.__dict__[jingle_type + '_state'] = states[state] + jingle_state = states[state] + if self.__dict__[jingle_type + '_state'] == jingle_state: + return + self.__dict__[jingle_type + '_state'] = jingle_state # Destroy existing session with the user when he signs off # We need to do that before modifying the sid