internal void Add(IReverserStream stream) { streams.Add(stream); lock (commandBuffer) { if (commandBuffer.Count > 0) { stream.Send(commandBuffer.ToArray()); commandBuffer.Clear(); } } }
internal bool Drop(IReverserStream stream) { streams.Remove(stream); return streams.Count == 0; }