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) {
* @param {string} localId
* @returns {Stream}
*/
ServerConnection.prototype.findByLocalId = function(localId) {
if(!localId)
return null;
for(let id in serverConnection.up) {
let s = serverConnection.up[id];
if(s.localId == localId)
let sc = this;
for(let id in sc.up) {
let s = sc.up[id];
if(s.localId === localId)
return s;
}
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