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 /// {