good morning!!!!

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

no empty frames

parent dbda178a
No related branches found
No related tags found
1 merge request!42no empty frames
Pipeline #61235 passed with stage
in 1 minute and 57 seconds
......@@ -119,14 +119,6 @@ func (c *Codec) Flush() error {
c.wrLock.Lock()
defer c.wrLock.Unlock()
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
}
err := c.currentFrame.Close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment