Update comment

This commit is contained in:
giongto35 2019-05-09 02:14:56 +08:00
parent 1ac81bdb43
commit 14e42789d7
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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()
})