8000 Remove mutex locks · coder/coder@8343404 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8343404

Browse files
committed
Remove mutex locks
1 parent 40d204f commit 8343404

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

peer/conn.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ type Conn struct {
142142
func (c *Conn) init() error {
143143
c.rtc.OnNegotiationNeeded(c.negotiate)
144144
c.rtc.OnICEConnectionStateChange(func(iceConnectionState webrtc.ICEConnectionState) {
145-
c.closeMutex.Lock()
146-
defer c.closeMutex.Unlock()
147145
if c.isClosed() {
148146
return
149147
}
@@ -152,8 +150,6 @@ func (c *Conn) init() error {
152150
slog.F("state", iceConnectionState))
153151
})
154152
c.rtc.OnICEGatheringStateChange(func(iceGatherState webrtc.ICEGathererState) {
155-
c.closeMutex.Lock()
156-
defer c.closeMutex.Unlock()
157153
if c.isClosed() {
158154
return
159155
}

0 commit comments

Comments
 (0)
0