mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Fixed a possible exception
This commit is contained in:
parent
523048f111
commit
c2f9970ef0
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ function startConnection(socket) {
|
||||||
socket.disconnect(true);
|
socket.disconnect(true);
|
||||||
//clear err socket in queue
|
//clear err socket in queue
|
||||||
for (var i = 0; i < connectionSocketQueue.length; i++) {
|
for (var i = 0; i < connectionSocketQueue.length; i++) {
|
||||||
if (connectionSocketQueue[i].id == socket.id)
|
if (!connectionSocketQueue[i] || connectionSocketQueue[i].id == socket.id)
|
||||||
connectionSocketQueue.splice(i, 1);
|
connectionSocketQueue.splice(i, 1);
|
||||||
}
|
}
|
||||||
isConnectionBusy = false;
|
isConnectionBusy = false;
|
||||||
|
|
Loading…
Reference in a new issue