Browse Source

handle async_receive_from errors

pull/731/head
orignal 8 years ago
parent
commit
1d8807a6ba
  1. 12
      SSU.cpp

12
SSU.cpp

@ -207,8 +207,12 @@ namespace transport @@ -207,8 +207,12 @@ namespace transport
}
else
{
LogPrint (eLogError, "SSU: receive error: ", ecode.message ());
delete packet;
if (ecode != boost::asio::error::operation_aborted)
{
LogPrint (eLogError, "SSU: receive error: ", ecode.message ());
Receive ();
}
}
}
@ -234,8 +238,12 @@ namespace transport @@ -234,8 +238,12 @@ namespace transport
}
else
{
LogPrint (eLogError, "SSU: v6 receive error: ", ecode.message ());
delete packet;
if (ecode != boost::asio::error::operation_aborted)
{
LogPrint (eLogError, "SSU: v6 receive error: ", ecode.message ());
ReceiveV6 ();
}
}
}

Loading…
Cancel
Save