Pass the jid to restore
if it's defined, then we want the extra check that the jids match, otherwise we might be attaching to someone else's session.
This commit is contained in:
parent
0002c0bd53
commit
f9528e7144
@ -1683,7 +1683,7 @@
|
|||||||
*/
|
*/
|
||||||
if (this.keepalive) {
|
if (this.keepalive) {
|
||||||
try {
|
try {
|
||||||
return this.connection.restore(undefined, this.onConnectStatusChanged);
|
return this.connection.restore(this.jid, this.onConnectStatusChanged);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.log("Could not restore session. Error message: "+e.message);
|
this.log("Could not restore session. Error message: "+e.message);
|
||||||
this.clearSession(); // If there's a roster, we want to clear it (see #555)
|
this.clearSession(); // If there's a roster, we want to clear it (see #555)
|
||||||
|
Loading…
Reference in New Issue
Block a user