// A simple blocking way to make sure this is all torn down. public void Shutdown() { if (_rgws != null) { _rgws.Shutdown(); _rgws.Dispose(); _rgws = null; } _logger("UWS shutdown.", 1); _status = Status.ReadyToConnect; }
// Forcibly disposes the RGWS public void Dispose() { _rgws?.Dispose(); _rgws = null; }