summaryrefslogtreecommitdiffstats
path: root/include/raul/Socket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/raul/Socket.hpp')
-rw-r--r--include/raul/Socket.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/raul/Socket.hpp b/include/raul/Socket.hpp
index 579a5cd..ed5204f 100644
--- a/include/raul/Socket.hpp
+++ b/include/raul/Socket.hpp
@@ -205,11 +205,7 @@ Socket::connect(const std::string& uri)
inline bool
Socket::listen()
{
- if (::listen(_sock, 64) == -1) {
- return false;
- } else {
- return true;
- }
+ return ::listen(_sock, 64) != -1;
}
inline std::shared_ptr<Socket>