1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-24 23:10:54 +00:00

Remove cruft code that was double-closing connections

This commit is contained in:
Kane York 2015-12-16 14:20:50 -08:00
parent b236c34c94
commit 9f5eb5818a

View file

@ -255,16 +255,6 @@ func RunSocketConnection(conn *websocket.Conn) {
atomic.AddUint64(&Statistics.ClientConnectsTotal, 1)
atomic.AddUint64(&Statistics.CurrentClientCount, 1)
var _closer sync.Once
closer := func() {
_closer.Do(func() {
conn.Close()
})
}
// Close the connection when we're done.
defer closer()
_clientChan := make(chan ClientMessage)
_serverMessageChan := make(chan ClientMessage, sendMessageBufferLength)
_errorChan := make(chan error)