Skip to content

Commit

Permalink
[FIXED] Possible delay in flushing data
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kozlovic <[email protected]>
  • Loading branch information
kozlovic committed Feb 7, 2019
1 parent ce2df36 commit bc8db76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,11 @@ func (c *client) flushOutbound() bool {
}
}

// Signal again if there is still data to send
if c.out.pb > 0 {
c.out.sg.Signal()
}

return true
}

Expand Down

0 comments on commit bc8db76

Please sign in to comment.