Compare commits
No commits in common. "fix/nilpointer_ggid" and "master" have entirely different histories.
fix/nilpoi
...
master
|
@ -89,10 +89,6 @@ func (c *RoomController) Offer(ctx *gin.Context) {
|
||||||
c.helper.Response(ctx, struct{}{}, http.StatusNoContent)
|
c.helper.Response(ctx, struct{}{}, http.StatusNoContent)
|
||||||
{
|
{
|
||||||
ggid := c.repo.GetRoomGGID(reqModel.RoomId)
|
ggid := c.repo.GetRoomGGID(reqModel.RoomId)
|
||||||
if ggid == nil {
|
|
||||||
println("ggid is nil, not answering for offer")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
buffer, err := json.Marshal(dto.SetSDPReqModel{
|
buffer, err := json.Marshal(dto.SetSDPReqModel{
|
||||||
PeerDTO: dto.PeerDTO{
|
PeerDTO: dto.PeerDTO{
|
||||||
RoomId: reqModel.RoomId,
|
RoomId: reqModel.RoomId,
|
||||||
|
|
|
@ -556,11 +556,6 @@ func (r *RoomRepository) offerPeer(peer *Peer, roomId string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
ggid := r.GetRoomGGID(roomId)
|
ggid := r.GetRoomGGID(roomId)
|
||||||
if ggid == nil {
|
|
||||||
println("[PC] ok not negotiating with peer", peer.ID, "(room is deleted)")
|
|
||||||
peer.HandshakeLock.Unlock()
|
|
||||||
return errors.New("room doesnt have ggid")
|
|
||||||
}
|
|
||||||
reqModel := dto.SetSDPReqModel{
|
reqModel := dto.SetSDPReqModel{
|
||||||
GGID: *ggid,
|
GGID: *ggid,
|
||||||
PeerDTO: dto.PeerDTO{
|
PeerDTO: dto.PeerDTO{
|
||||||
|
|
Loading…
Reference in New Issue