Re: [webrtc-pc] The same connection.peerIdentity promise can be resolved multiple times

I just looked at the [spec](http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise-reject-functions) and while my understanding was that resolving or rejecting a promise was a noop if it was settled, that is only true for the resolution and rejection functions.  So I've refactored this code a little.

-- 
GitHub Notification of comment by martinthomson
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1513#issuecomment-398283904 using your GitHub account

Received on Tuesday, 19 June 2018 06:02:18 UTC