don't throw exception

This commit is contained in:
orignal 2015-02-14 17:20:21 -05:00
parent 97ec65cccd
commit 10b733d215
2 changed files with 4 additions and 3 deletions

View file

@ -163,7 +163,8 @@ namespace transport
std::vector<SSUPacket *> packets;
packets.push_back (packet);
size_t moreBytes = m_Socket.available();
boost::system::error_code ec;
size_t moreBytes = m_Socket.available(ec);
while (moreBytes && packets.size () < 25)
{
packet = new SSUPacket ();