Locks around data track (#508)

* WIP commit

* Fix migration, thank you Jie
This commit is contained in:
Raja Subramanian
2022-03-12 20:10:46 +05:30
committed by GitHub
parent b0e470cd59
commit be02611ab7
5 changed files with 116 additions and 10 deletions
+4
View File
@@ -69,6 +69,10 @@ func (t *DataTrack) OnDataPacket(f func(*livekit.DataPacket)) {
t.lock.Unlock()
}
func (t *DataTrack) ID() livekit.TrackID {
return t.trackID
}
func (t *DataTrack) TrackID() livekit.TrackID {
return t.trackID
}