shutdownShared static method

void shutdownShared()

Implementation

static void shutdownShared() {
  final existing = _instance;
  _instance = null;
  _pending = null;
  if (existing == null) return;
  for (final client in existing.clients) {
    client.shutdown();
  }
}