good morning!!!!

Skip to content
Snippets Groups Projects
Commit 1c8b4b8d authored by Garet Halliday's avatar Garet Halliday
Browse files

Merge branch 'no-empty-frames' into 'master'

no empty frames

See merge request !42
parents dbda178a 4822b619
Branches
Tags v0.4.18
1 merge request!42no empty frames
Pipeline #61237 passed
...@@ -119,14 +119,6 @@ func (c *Codec) Flush() error { ...@@ -119,14 +119,6 @@ func (c *Codec) Flush() error {
c.wrLock.Lock() c.wrLock.Lock()
defer c.wrLock.Unlock() defer c.wrLock.Unlock()
if c.currentFrame == nil { if c.currentFrame == nil {
wr, err := c.conn.Writer(c.ctx, websocket.MessageText)
if err != nil {
return err
}
err = wr.Close()
if err != nil {
return err
}
return nil return nil
} }
err := c.currentFrame.Close() err := c.currentFrame.Close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment