From d41837bf160a00a8eecfba3ed54b5510bb645862 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Fri, 14 Dec 2012 15:06:03 +0100 Subject: [PATCH] Fixed example in the API doc of sf::SocketSelector --- include/SFML/Network/SocketSelector.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/SFML/Network/SocketSelector.hpp b/include/SFML/Network/SocketSelector.hpp index 5dd03a53f..478679107 100644 --- a/include/SFML/Network/SocketSelector.hpp +++ b/include/SFML/Network/SocketSelector.hpp @@ -231,6 +231,11 @@ private : /// // be notified when he sends something /// selector.add(*client); /// } +/// else +/// { +/// // Error, we won't get a new connection, delete the socket +/// delete client; +/// } /// } /// else /// {