mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Fix success condition for sending end-of-stream packet in voip example
This commit is contained in:
parent
fae91bbbf2
commit
e0d03ec6a8
@ -88,7 +88,7 @@ private:
|
||||
sf::Packet packet;
|
||||
packet << clientEndOfStream;
|
||||
|
||||
if (!m_socket.send(packet))
|
||||
if (m_socket.send(packet) != sf::Socket::Done)
|
||||
{
|
||||
std::cerr << "Failed to send end-of-stream packet" << std::endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user