W3C home > Mailing lists > Public > public-webrtc@w3.org > March 2014

Re: Improvements suggestion for DataChannels

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Tue, 4 Mar 2014 09:57:04 +0100
Message-ID: <53159560.8030004@ericsson.com>
To: Randell Jesup <randell-ietf@jesup.org>, <public-webrtc@w3.org>
On 2014-03-03 15:15, Randell Jesup wrote:
> On 3/3/2014 8:06 AM, Martin Thomson wrote:
>> On 3 March 2014 04:18, Adam Bergkvist <adam.bergkvist@ericsson.com>
>> wrote:
>>> I still think that's strange API behavior.
>> I don't see any strangeness here.  If I have a reference, then the
>> object is not garbage collected.  If not, then not.
>>
>
> Agree with Martin.  It seems totally normal - things stay alive
> (accessible) so long as they're referenced.  Telling it to close()
> disconnects it, but the object exists so long as the reference exists.

I agree that what you describe is totally normal. The thing I was 
referring to was the conditional side effect of close(). That the 
channel should be removed from the PeerConnection's channel list if it 
was never accessed via that list, otherwise not. That may have been a 
misunderstanding from my side btw.

/Adam
Received on Tuesday, 4 March 2014 08:57:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:38 UTC