@dxos/network-manager 2.28.1-dev.db00c324 → 2.28.1-dev.dd12eae4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,15 +30,14 @@ export interface NetworkManagerOptions {
30
30
 
31
31
  const log = debug('dxos:network-manager');
32
32
 
33
+ /**
34
+ * TODO(burdon): Comment.
35
+ */
33
36
  export class NetworkManager {
34
37
  private readonly _ice?: any[];
35
-
36
38
  private readonly _swarms = new ComplexMap<PublicKey, Swarm>(x => x.toHex());
37
-
38
39
  private readonly _maps = new ComplexMap<PublicKey, SwarmMapper>(x => x.toHex());
39
-
40
40
  private readonly _signal: SignalManager;
41
-
42
41
  private readonly _connectionLog?: ConnectionLog;
43
42
 
44
43
  public readonly topicsUpdated = new Event<void>();
@@ -141,7 +140,8 @@ export class NetworkManager {
141
140
 
142
141
  await swarm.destroy();
143
142
  this._swarms.delete(topic);
144
- this.topicsUpdated.emit();
143
+
144
+ await this.topicsUpdated.emit();
145
145
  }
146
146
 
147
147
  // TODO(marik-d): Remove.