Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fix UDP double tap in fc's UDP send_to fast path
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Apr 16, 2018
1 parent 74a4c7a commit 9224efe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/fc/src/network/udp_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ namespace fc
try
{
my->_sock->send_to(boost::asio::buffer(buffer, length), to);
return;
}
catch(const boost::system::system_error& e)
{
Expand All @@ -66,6 +67,7 @@ namespace fc
try
{
my->_sock->send_to(boost::asio::buffer(buffer.get(), length), to);
return;
}
catch(const boost::system::system_error& e)
{
Expand Down

0 comments on commit 9224efe

Please sign in to comment.