mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-21 09:08:57 +00:00
Remove un necessary comments
This commit is contained in:
parent
745b391049
commit
e1fe2c98db
1 changed files with 2 additions and 2 deletions
|
|
@ -97,13 +97,13 @@ func (s *Session) RegisterBrowserClient() {
|
|||
if room == nil {
|
||||
room = s.handler.createNewRoom(s.GameName, s.RoomID, s.PlayerIndex)
|
||||
}
|
||||
|
||||
// Attach peerconnection to room
|
||||
room.AddConnectionToRoom(s.peerconnection, s.PlayerIndex)
|
||||
s.RoomID = room.ID
|
||||
|
||||
// Register room to overlord if we are connecting to overlord
|
||||
log.Println("Try Registering room", room, "Client: ", s.OverlordClient)
|
||||
if room != nil && s.OverlordClient != nil {
|
||||
log.Println("Registering room", s.RoomID)
|
||||
s.OverlordClient.Send(cws.WSPacket{
|
||||
ID: "registerRoom",
|
||||
Data: s.RoomID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue