1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00
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
2018-01-21 15:00:02 +00:00
2019-05-03 10:51:28 +02:00
2016-03-09 12:55:57 +01:00
2019-05-08 21:52:16 +02:00
2018-09-05 13:51:00 +02:00
2016-08-02 23:17:28 +01:00
2016-09-13 00:47:54 +01:00
2019-05-03 10:51:28 +02:00
2016-02-24 00:31:55 +00:00
2019-05-03 10:51:28 +02:00
2012-02-20 20:07:38 +00:00
2019-04-14 10:39:24 +02:00
2019-04-24 01:08:38 +02:00
2016-06-08 22:23:00 +01:00
2014-06-29 22:58:33 +01:00
2019-05-03 10:59:39 +02:00
2019-05-03 10:51:28 +02:00
2019-05-02 17:01:55 +02:00
2019-04-14 10:39:24 +02:00

Profanity Build Status

Profanity is a console based XMPP client inspired by Irssi,

alt tag

See the User Guide for information on installing and using Profanity.

Homepage: https://profanity-im.github.io/

Mailing List: https://groups.google.com/forum/#!forum/profanitydev

MUC: profanity@rooms.dismail.de

Plugins repository: https://github.com/profanity-im/profanity-plugins

Description
No description provided
Readme 24 MiB
Languages
C 97.4%
Python 1.4%
Makefile 0.6%
M4 0.5%
Shell 0.1%