public void Disconnect() { /* shutDown = true; * updateThread.Join(); */ foreach (Channel ch in channels) { if (ch.Consumer != null) { (new AmcpRequest(client, "REMOVE", ch, "REPLAY")).GetResponse(); } } client.Disconnect(); oscListener.Close(); }