Fix success condition for sending end-of-stream packet in voip example

This commit is contained in:
kimci86 2022-03-07 00:22:44 +01:00 committed by Lukas Dürrenberger
parent fae91bbbf2
commit e0d03ec6a8

View File

@ -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;
}