Set heartbeat timer if needed, even if send_buffer

Fixes #143
Merge pull request #158 from jcheng5/master

Set heartbeat timer if needed, even if send_buffer is not empty