فهرست منبع

Keep on getting disconnected. This fixed it.

Seems like the RID gets incremented once too many (outside of upper bound of
expected window), and then server responds with item-not-found.

See: http://xmpp.org/extensions/xep-0124.html
JC Brand 10 سال پیش
والد
کامیت
c2063eb1a7
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      converse.js

+ 0 - 2
converse.js

@@ -4592,8 +4592,6 @@
                     sid = this.session.get('sid');
                     sid = this.session.get('sid');
                     jid = this.session.get('jid');
                     jid = this.session.get('jid');
                     if (rid && jid && sid) {
                     if (rid && jid && sid) {
-                        // We have the necessary tokens for resuming a session
-                        rid += 1;
                         this.session.save({rid: rid}); // The RID needs to be increased with each request.
                         this.session.save({rid: rid}); // The RID needs to be increased with each request.
                         this.connection.attach(jid, sid, rid, this.onConnect);
                         this.connection.attach(jid, sid, rid, this.onConnect);
                     } else if (this.prebind) {
                     } else if (this.prebind) {