mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-22 17:47:11 +00:00
Update comment
This commit is contained in:
parent
1ac81bdb43
commit
14e42789d7
2 changed files with 4 additions and 2 deletions
|
|
@ -86,6 +86,8 @@ func NewGameView(console *nes.Console, title, saveFile string, imageChannel chan
|
|||
// ListenToInputChannel listen from input channel streamm, which is exposed to WebRTC session
|
||||
func (view *GameView) ListenToInputChannel() {
|
||||
for {
|
||||
// Adding ok here make thing slowdown
|
||||
// TODO: Investigate
|
||||
keysInBinary, ok := <-view.inputChannel
|
||||
if !ok {
|
||||
return
|
||||
|
|
|
|||
|
|
@ -165,8 +165,8 @@ func (w *WebRTC) StartClient(remoteSession string, width, height int) (string, e
|
|||
})
|
||||
|
||||
inputTrack.OnClose(func() {
|
||||
fmt.Println("Data channel closed")
|
||||
fmt.Println("Closed webrtc")
|
||||
log.Println("Data channel closed")
|
||||
log.Println("Closed webrtc")
|
||||
//close(w.Done)
|
||||
//w.StopClient()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue