Skip to content

Commit

Permalink
No duplicate session warning per se
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Mar 8, 2021
1 parent 85d431a commit d972a7e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/signaling.js
Original file line number Diff line number Diff line change
Expand Up @@ -1072,10 +1072,7 @@ Signaling.Standalone.prototype.processRoomEvent = function(data) {
delete leftUsers[joinedUsers[i].sessionid]

if (this.settings.userId && joinedUsers[i].userid === this.settings.userId) {
if (this.ownSessionJoined && joinedUsers[i].sessionid !== this.sessionId) {
console.error('Duplicated session detected for the same user.')
EventBus.$emit('duplicateSessionDetected')
} else if (joinedUsers[i].sessionid === this.sessionId) {
if (joinedUsers[i].sessionid === this.sessionId) {
// We are ignoring joins before we found our own message,
// as otherwise you get the warning for your own old session immediately
this.ownSessionJoined = true
Expand Down

0 comments on commit d972a7e

Please sign in to comment.