Fix a memory leak with the chat aspect. (#23)

Essentially, the for loop wasn't being returned out
of and that caused the read listener to never be
let up and released to the gc
This commit is contained in:
Bradley Hilton
2020-06-23 01:52:50 -05:00
committed by GitHub
parent 487bd12444
commit fe96739f60
4 changed files with 33 additions and 26 deletions

View File

@@ -15,7 +15,7 @@ import (
//Start starts the router for the http, ws, and rtmp
func Start() error {
// websocket server
chatServer := chat.NewServer("/entry")
chatServer := chat.NewServer()
go chatServer.Listen()
// start the rtmp server