Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
6f9fe1b5
Commit
6f9fe1b5
authored
Dec 08, 2015
by
Benjamin Fischer
Browse files
[socket] fixed a "xhr undefined" bug
parent
328fb1ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/static/js/common/socket.js
View file @
6f9fe1b5
...
...
@@ -277,8 +277,8 @@ define(["jquery", "emitter"], function($, Emitter) {
});
timeout
=
setTimeout
(
function
()
{
if
(
xhr
.
state
()
==
"
pending
"
)
{
xhr
.
abort
(
"
connection timeout (
"
+
self
.
options
.
pollGracePeriod
+
"
)
"
);
if
(
self
.
xhr
.
state
()
==
"
pending
"
)
{
self
.
xhr
.
abort
(
"
connection timeout (
"
+
self
.
options
.
pollGracePeriod
+
"
)
"
);
}
},
this
.
options
.
pollGracePeriod
);
...
...
@@ -314,12 +314,12 @@ define(["jquery", "emitter"], function($, Emitter) {
}
});
Socket
.
PollSocket
=
PollSocket
;
// define common states
Socket
.
states
=
{
CONNECTING
:
0
,
CONNECTING
:
0
,
CONNECTED
:
1
,
CLOSING
:
2
,
CLOSED
:
3
...
...
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