Esempio n. 1
0
 internal void OnCreatedDestroyedStream(SubtConnectedPeerStream stream, bool createdOrDestroyed)
 {
     _actionsQueue.Enqueue(() =>
     {
         if (createdOrDestroyed)
         {
             _streams.Add(stream.StreamId, stream);
         }
         else
         {
             _streams.Remove(stream.StreamId);
         }
     });
 }
Esempio n. 2
0
 internal void OnCreatedDestroyedStream(SubtConnectedPeerStream stream, bool createdOrDestroyed)
 {
     _actionsQueue.Enqueue(() =>
     {
         if (createdOrDestroyed)
         {
             if (!_streams.ContainsKey(stream.StreamId))
             {
                 _streams.Add(stream.StreamId, stream); // todo why does it insert duplicate keys sometimes?
             }
         }
         else
         {
             _streams.Remove(stream.StreamId);
         }
     }, "subtsender2462");
 }
Esempio n. 3
0
 internal RxMeasurement(SubtLocalPeer subtLocalPeer, SubtConnectedPeerStream stream)
 {
     _subtLocalPeer = subtLocalPeer;
     _stream = stream;
 }