diff --git a/examples/voip/Client.cpp b/examples/voip/Client.cpp index 9bea92d3..ec41aaa9 100644 --- a/examples/voip/Client.cpp +++ b/examples/voip/Client.cpp @@ -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; }