mirror of
https://github.com/jech/galene.git
synced 2024-11-23 00:55:58 +01:00
Fix serverConnection not defined in ServerConnection.findByLocalId
This commit is contained in:
parent
170f510adc
commit
4db8279016
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue