chore: unnecessary guard around call to delete
This commit is contained in:
@@ -195,9 +195,7 @@ func inputWebRTC(w http.ResponseWriter, r *http.Request) {
|
|||||||
case pion.PeerConnectionState:
|
case pion.PeerConnectionState:
|
||||||
if msg == pion.PeerConnectionStateClosed {
|
if msg == pion.PeerConnectionStateClosed {
|
||||||
stream.RemoveProducer(prod)
|
stream.RemoveProducer(prod)
|
||||||
if _, ok := sessions[id]; ok {
|
delete(sessions, id)
|
||||||
delete(sessions, id)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user