Commit Graph

2 Commits

Author SHA1 Message Date
Atsushi Watanabe
58338965b2 Fix DataChannel open race
Concurrent call of generateDataChannelID caused data race.
2020-03-28 15:15:21 -07:00
Sean DuBois
721b342e2e Properly generate DataChannel streamId
Before we computed DataChannel IDs before signaling, this
is incorrect because IDs must take into account if we are
running an DTLS Client or Server.

This updates the DataChannel ID generation code to take this
into account before generating a streamId.

Resolves #908
2019-11-14 10:51:05 -08:00