repo: janusweb
action: commit
revision: 
path_from: 
revision_from: d93c7a3c9b69b4daa6a1641e87e6f3165441d38f:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit d93c7a3c9b69b4daa6a1641e87e6f3165441d38f
Author: James Baicoianu 
Date:   Wed Jun 14 15:28:06 2017 -0700

    Handle case where server connection doesn't have an associated room URL

diff --git a/scripts/external/JanusClientConnection.js b/scripts/external/JanusClientConnection.js
index e45ddaa93e5b6d98f1c076369739aa26d2587512..
index ..119b6bd75573ed3a477833c0bed0e4cb0629a4bf 100644
--- a/scripts/external/JanusClientConnection.js
+++ b/scripts/external/JanusClientConnection.js
@@ -350,10 +350,12 @@ JanusClientConnection.prototype.sendLogon = function() {
     'method': 'logon',
     'data': {
       'userId': this._userId,
-      'version': this._version,
-      'roomId': md5(this._roomUrl)
+      'version': this._version
     }
   }
+  if (this._roomUrl) {
+    msgData.data.roomId = md5(this._roomUrl);
+  }
   this.send(msgData);
 };
 JanusClientConnection.prototype.setUserId = function(userId) {

-----END OF PAGE-----