Commit f9528e71 authored by JC Brand's avatar JC Brand

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.
parent 0002c0bd
......@@ -1683,7 +1683,7 @@
*/
if (this.keepalive) {
try {
return this.connection.restore(undefined, this.onConnectStatusChanged);
return this.connection.restore(this.jid, this.onConnectStatusChanged);
} catch (e) {
this.log("Could not restore session. Error message: "+e.message);
this.clearSession(); // If there's a roster, we want to clear it (see #555)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment