mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-23 16:08:51 -05:00
Catch SendFailedException when replying back in Connection::Receive()
This commit is contained in:
parent
558a133044
commit
93f4d2b3f1
@ -1102,6 +1102,11 @@ u32 Connection::Receive(u16 &peer_id, u8 *data, u32 datasize)
|
|||||||
if(m_socket.WaitData(0) == true)
|
if(m_socket.WaitData(0) == true)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
catch(SendFailedException &e)
|
||||||
|
{
|
||||||
|
derr_con<<"Receive(): SendFailedException; peer_id="
|
||||||
|
<<peer_id<<std::endl;
|
||||||
|
}
|
||||||
} // for
|
} // for
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user