summaryrefslogtreecommitdiff
path: root/plugins/link.py
diff options
context:
space:
mode:
authorEijebong <eijebong@bananium.fr>2017-04-11 13:42:51 +0200
committermathieui <mathieui@mathieui.net>2017-06-27 20:41:03 +0200
commita07c87bcbe00b048c682f1ce20fade166a7750ac (patch)
tree848c76b22c1257a693470addbb6063164cfc3b6a /plugins/link.py
parentbc08858b8ac7072cff622fa6c3b0f63dcbe9e548 (diff)
downloadpoezio-a07c87bcbe00b048c682f1ce20fade166a7750ac.tar.gz
poezio-a07c87bcbe00b048c682f1ce20fade166a7750ac.tar.bz2
poezio-a07c87bcbe00b048c682f1ce20fade166a7750ac.tar.xz
poezio-a07c87bcbe00b048c682f1ce20fade166a7750ac.zip
Fix the resource duplication when reconnecting while auto_reconnect is true.
The problem is that core.legitimate_disconnect is set to True in the on_connecting callback which is called before the session_end for some reasons. on_connecting sets core.legitimate_disconnect back to False so session_end thinks we've been disconnected and connects automagically adding a resource and thus duplicating everything. Moving the reset of legitimate_disconnect to the on_connected callback fixes the problem.
Diffstat (limited to 'plugins/link.py')
0 files changed, 0 insertions, 0 deletions