From 07fee5b85911f0c090d4abd256e6235615ca47b9 Mon Sep 17 00:00:00 2001
From: Daniel M <daniel.q.mueller@stud.h-da.de>
Date: Sat, 22 May 2021 00:36:52 +0200
Subject: [PATCH] Fix autoclose default true

---
 inc/tcplistener.hpp | 2 +-
 inc/tcpstream.hpp   | 2 +-
 inc/udpsocket.hpp   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/inc/tcplistener.hpp b/inc/tcplistener.hpp
index 86b1e60..79582cc 100644
--- a/inc/tcplistener.hpp
+++ b/inc/tcplistener.hpp
@@ -32,7 +32,7 @@ private:
     /**
      * @brief If set to true, the socket is automatically closed on destruction
      */
-    bool autoclose = false;
+    bool autoclose = true;
 
 public:
 
diff --git a/inc/tcpstream.hpp b/inc/tcpstream.hpp
index fcb0801..72f9af5 100644
--- a/inc/tcpstream.hpp
+++ b/inc/tcpstream.hpp
@@ -33,7 +33,7 @@ private:
     /**
      * @brief If set to true, the socket is automatically closed on destruction
      */
-    bool autoclose = false;
+    bool autoclose = true;
 
 public:
 
diff --git a/inc/udpsocket.hpp b/inc/udpsocket.hpp
index 112e329..6386b02 100644
--- a/inc/udpsocket.hpp
+++ b/inc/udpsocket.hpp
@@ -40,7 +40,7 @@ private:
     /**
      * @brief If set to true, the socket is automatically closed on destruction
      */
-    bool autoclose = false;
+    bool autoclose = true;
 
 public:
 
-- 
GitLab