From e0d03ec6a8716ac0e01203d8b5b389eaddfc0ef1 Mon Sep 17 00:00:00 2001 From: kimci86 Date: Mon, 7 Mar 2022 00:22:44 +0100 Subject: [PATCH] Fix success condition for sending end-of-stream packet in voip example --- examples/voip/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/voip/Client.cpp b/examples/voip/Client.cpp index 9bea92d38..ec41aaa90 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; }