mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
4344ee2a5a
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. |
||
---|---|---|
.. | ||
command | ||
config | ||
event | ||
omemo | ||
otr | ||
pgp | ||
plugins | ||
tools | ||
ui | ||
xmpp | ||
common.c | ||
common.h | ||
log.c | ||
log.h | ||
main.c | ||
profanity.c | ||
profanity.h |