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:
parent
b236c34c94
commit
9f5eb5818a
1 changed files with 0 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue