Skip to content

Commit

Permalink
Merge pull request #221 from bitshares/update-count
Browse files Browse the repository at this point in the history
Explicitly convert an integer to bool
  • Loading branch information
abitmore authored Jan 4, 2021
2 parents df83551 + 95cf925 commit f391690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/tcp_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ namespace fc {

void tcp_socket::enable_keep_alives(const fc::microseconds& interval)
{
if (interval.count())
if (interval.count() > 0)
{
boost::asio::socket_base::keep_alive option(true);
my->_sock.set_option(option);
Expand Down

0 comments on commit f391690

Please sign in to comment.