Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
telemersion
Telemersive Gateway
Commits
7bd6f1cc
Commit
7bd6f1cc
authored
Apr 24, 2021
by
maybites
Browse files
readded slot update
parent
6e949e65
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/peerList.js
View file @
7bd6f1cc
...
...
@@ -118,8 +118,19 @@ function done()
}
}
}
// update Slots with new peer
slots
.
forEach
(
update
);
}
function
update
(
_peerID
,
_index
)
{
var
localPeer
=
myPeerList
.
get
(
_peerID
);
if
(
localPeer
.
get
(
"
verified
"
)
===
1
){
messnamed
(
"
pl_
"
+
_peerID
,
"
slot
"
,
_index
);
}
}
function
createPeer
(
_peerID
){
slots
.
push
(
_peerID
);
...
...
Write
Preview
Supports
Markdown
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