Skip to content

Commit

Permalink
Merge pull request #158 from jcheng5/master
Browse files Browse the repository at this point in the history
Set heartbeat timer if needed, even if send_buffer is not empty
  • Loading branch information
brycekahle committed Oct 22, 2014
2 parents 69749c0 + b88f9ea commit b1d86b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport.coffee
Expand Up @@ -152,7 +152,7 @@ class Session
return false

tryFlush: ->
if not @flushToRecv(@recv)
if not @flushToRecv(@recv) or not @to_tref
if @to_tref
clearTimeout(@to_tref)
x = =>
Expand Down

0 comments on commit b1d86b1

Please sign in to comment.