cleanupScope method

bool cleanupScope()

Allows external cleanup of the scope (called by SwarmConn if needed) Returns true if cleanup was performed, false if already cleaned up

Implementation

bool cleanupScope() {
  if (!_scopeCleanedUp) {
    _logger.fine('Stream $_id: External scope cleanup requested');
    _managementScope.done();
    _scopeCleanedUp = true;
    return true;
  }
  return false;
}