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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user