@dxos/network-manager 0.3.9-main.3ced312 → 0.3.9-main.3fcc0fa

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.
@@ -182,8 +182,8 @@ export class SimplePeerTransport implements Transport {
182
182
  return 'unavailable';
183
183
  }
184
184
 
185
- if (rc.relay) {
186
- return `${rc.ip}:${rc.port}/${rc.protocol} relay for XXX ${rc.candidateType}`;
185
+ if (rc.candidateType === 'relay') {
186
+ return `${rc.ip}:${rc.port}/${rc.protocol} relay for ${rc.relatedAddress}:${rc.relatedPort}`;
187
187
  }
188
188
  return `${rc.ip}:${rc.port}/${rc.protocol} ${rc.candidateType}`;
189
189
  }
@@ -193,7 +193,6 @@ export class SimplePeerTransport implements Transport {
193
193
  if (this._closed) {
194
194
  return;
195
195
  }
196
- this._closed = true;
197
196
  this._disconnectStreams();
198
197
  this._peer!.destroy();
199
198
  this._closed = true;