1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/src
Dmitry Podgorny 4344ee2a5a Don't clear saved account data in session_disconnect()
If connection loss occurs, it calls session_disconnect() eventually.
This function clears saved account data which is required for
reconnection. Therefore, when reconnect timer expires, we get errors:

02/06/2019 04:53:42: stderr: ERR: (profanity:17115): GLib-CRITICAL **:
                     04:53:42.305: g_key_file_has_group: assertion
                     'group_name != NULL' failed
02/06/2019 04:53:43: prof: ERR: Unable to reconnect, account no longer
                     exists: (null)

To solve it, don't clear the saved data in session_disconnect(). It will
be cleared properly on connection loss if reconnect timer is not
configured. But won't be cleared with /disconnect command.
So, after /disconnect the data will live in memory until the next
/connect.

Also, remove some copy-paste in connection loss path.
2019-06-03 13:21:52 +03:00
..
command Force UI update before generating OMEMO crypto materials 2019-05-21 22:32:06 +02:00
config Add occupants char 2019-05-02 17:01:55 +02:00
event Close windows on connection loss not general disc. 2019-05-27 12:52:04 +02:00
omemo Correctly handle malformed OMEMO messages 2019-05-23 13:12:02 +02:00
otr Update copyright to include 2019 2019-01-22 11:31:45 +01:00
pgp Restoration of correct GPG encryption 2019-02-20 11:53:40 +01:00
plugins Follow normal workflow for OMEMO message reception 2019-04-10 16:03:50 +02:00
tools Update copyright to include 2019 2019-01-22 11:31:45 +01:00
ui Merge pull request #1084 from jubalh/occupants-char 2019-05-03 11:11:40 +02:00
xmpp Don't clear saved account data in session_disconnect() 2019-06-03 13:21:52 +03:00
common.c Don't call mblen() to not depend on locale 2019-05-22 19:57:52 +02:00
common.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
log.c Log and print outgoing encrypted message 2019-04-10 17:12:31 +02:00
log.h Log and print outgoing encrypted message 2019-04-10 17:12:31 +02:00
main.c Update copyright years 2019-04-24 01:08:38 +02:00
profanity.c Move OMEMO initialization to profanity intialization 2019-04-10 15:37:22 +02:00
profanity.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00