Commit 4db82790 authored by Alexandre Iooss's avatar Alexandre Iooss Committed by Juliusz Chroboczek

Fix serverConnection not defined in ServerConnection.findByLocalId

parent 170f510a
...@@ -410,14 +410,15 @@ ServerConnection.prototype.request = function(what) { ...@@ -410,14 +410,15 @@ ServerConnection.prototype.request = function(what) {
* @param {string} localId * @param {string} localId
* @returns {Stream} * @returns {Stream}
*/ */
ServerConnection.prototype.findByLocalId = function(localId) { ServerConnection.prototype.findByLocalId = function(localId) {
if(!localId) if(!localId)
return null; return null;
for(let id in serverConnection.up) { let sc = this;
let s = serverConnection.up[id];
if(s.localId == localId) for(let id in sc.up) {
let s = sc.up[id];
if(s.localId === localId)
return s; return s;
} }
return null; return null;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment