objectManager: correct other invalid index code in onNameVanished
The object manager tries to synthesize interface removal events if the bus name of a remote object drops off the bus. The code had bad typos in it, though: it reuses the `i` index variable in its inner loop, where it should be using the `j` index variable. This commit corrects the i/j confusion.
This commit is contained in:
parent
afc7925e3e
commit
96c5404fd4
@ -241,8 +241,8 @@ var ObjectManager = new Lang.Class({
|
|||||||
let object = this._objects[objectPath];
|
let object = this._objects[objectPath];
|
||||||
|
|
||||||
let interfaceNames = Object.keys(object);
|
let interfaceNames = Object.keys(object);
|
||||||
for (let j = 0; i < interfaceNames.length; i++) {
|
for (let j = 0; j < interfaceNames.length; j++) {
|
||||||
let interfaceName = interfaceNames[i];
|
let interfaceName = interfaceNames[j];
|
||||||
|
|
||||||
if (object[interfaceName])
|
if (object[interfaceName])
|
||||||
this._removeInterface(objectPath, interfaceName);
|
this._removeInterface(objectPath, interfaceName);
|
||||||
|
Loading…
Reference in New Issue
Block a user