cleanUp static method

void cleanUp()

Clean up the SRT library and release all resources

Should be called before application shutdown. After calling this, no SRT operations are permitted.

Implementation

static void cleanUp() {
  for (final socket in _sokets) {
    socket.dispose();
  }

  _sokets.clear();

  if (_initialized) {
    bindings.srt_cleanup();
    _initialized = false;
  }
}