Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-08-03 23:11:03 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-08-03 23:11:03 +0400
commit0317d93561526f359cd2f53d971c14a88ca3b94b (patch)
tree68c7d79f6d608a13d43a4011939bef99db5053ae /src
parent615ed1be060e4e934b0f2d6de5c55c9fa316ac71 (diff)
notify GUI about ERROR presences. Fixes #3667
Diffstat (limited to 'src')
-rw-r--r--src/common/connection_handlers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index 79c00ada8..ed91a57b7 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -2121,12 +2121,12 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
elif ptype == 'error':
errmsg = prs.getError()
errcode = prs.getErrorCode()
- if errcode == '502': # Internal Timeout:
- self.dispatch('NOTIFY', (jid_stripped, 'error', errmsg, resource,
- prio, keyID, timestamp, None))
- else: # print in the window the error
+ if errcode != '502': # Internal Timeout:
+ # print in the window the error
self.dispatch('ERROR_ANSWER', ('', jid_stripped,
errmsg, errcode))
+ self.dispatch('NOTIFY', (jid_stripped, 'error', errmsg, resource, prio,
+ keyID, timestamp, None))
if ptype == 'unavailable' and jid_stripped in self.sessions:
# automatically terminate sessions that they haven't sent a thread ID in