removeRequest method
Drops a relay request, for a relay the request could not be sent to
Implementation
void removeRequest(RelayConnectionKey key) {
final dropped = requests.remove(key);
if (dropped == null) return;
dropped.onOutcomeChanged = null;
final onUrl = _requestsByUrl[dropped.url];
if (onUrl != null) {
onUrl.remove(dropped);
if (onUrl.isEmpty) {
_requestsByUrl.remove(dropped.url);
}
}
_onRelayRequestChanged(dropped.url);
}