Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp.c @ 2118:51fde9c25401
Reset carbons when the connection is closed
Then, carbons are re-enabled when mcabber reconnects.
Thanks to sezuan for the report.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 09 Jun 2014 10:01:48 +0200 |
parents | 44c4b850263a |
children | fc7a758ebbde |
comparison
equal
deleted
inserted
replaced
2117:0355be54e3a9 | 2118:51fde9c25401 |
---|---|
38 #include "roster.h" | 38 #include "roster.h" |
39 #include "screen.h" | 39 #include "screen.h" |
40 #include "settings.h" | 40 #include "settings.h" |
41 #include "utils.h" | 41 #include "utils.h" |
42 #include "main.h" | 42 #include "main.h" |
43 #include "carbons.h" | |
43 | 44 |
44 #define RECONNECTION_TIMEOUT 60L | 45 #define RECONNECTION_TIMEOUT 60L |
45 | 46 |
46 LmConnection* lconnection = NULL; | 47 LmConnection* lconnection = NULL; |
47 static guint AutoConnection; | 48 static guint AutoConnection; |
950 // Free roster | 951 // Free roster |
951 roster_free(); | 952 roster_free(); |
952 if (rosternotes) | 953 if (rosternotes) |
953 lm_message_node_unref(rosternotes); | 954 lm_message_node_unref(rosternotes); |
954 rosternotes = NULL; | 955 rosternotes = NULL; |
956 // Reset carbons | |
957 carbons_reset(); | |
955 // Update display | 958 // Update display |
956 update_roster = TRUE; | 959 update_roster = TRUE; |
957 scr_update_buddy_window(); | 960 scr_update_buddy_window(); |
958 | 961 |
959 if (!reason) | 962 if (!reason) |