Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
49946158
Commit
49946158
authored
May 15, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: Only throw error when trying keepalive without JID for prebind
parent
ea207ad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/converse-core.js
src/converse-core.js
+9
-5
No files found.
src/converse-core.js
View file @
49946158
...
...
@@ -1894,12 +1894,16 @@
xhr
.
send
();
};
this
.
restoreBOSHSession
=
function
()
{
this
.
restoreBOSHSession
=
function
(
jid_is_required
)
{
/* Tries to restore a cached BOSH session. */
if
(
!
this
.
jid
)
{
throw
new
Error
(
"
restoreBOSHSession: tried to restore a
\"
keepalive
\"
session
"
+
"
but we don't have the JID for the user!
"
);
var
msg
=
"
restoreBOSHSession: tried to restore a
\"
keepalive
\"
session
"
+
"
but we don't have the JID for the user!
"
;
if
(
jid_is_required
)
{
throw
new
Error
(
msg
);
}
else
{
_converse
.
log
(
msg
);
}
}
try
{
this
.
connection
.
restore
(
this
.
jid
,
this
.
onConnectStatusChanged
);
...
...
@@ -1918,7 +1922,7 @@
* being used.
*/
if
(
!
reconnecting
)
{
if
(
this
.
keepalive
&&
this
.
restoreBOSHSession
())
{
if
(
this
.
keepalive
&&
this
.
restoreBOSHSession
(
true
))
{
return
;
}
// No keepalive, or session resumption has failed.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment