decrementConnections method

void decrementConnections(
  1. String relayUrl
)

Decrement active connection count for a relay.

Implementation

void decrementConnections(String relayUrl) {
  final current = _activeConnections[relayUrl] ?? 0;
  if (current > 0) {
    _activeConnections[relayUrl] = current - 1;
  }
}